more enterprisey assists API

This commit is contained in:
Aleksey Kladov
2019-01-03 18:59:17 +03:00
parent aea2183799
commit a4635a199b
11 changed files with 287 additions and 210 deletions

View File

@@ -119,3 +119,9 @@ impl SyntaxTextSlice for ops::Range<TextUnit> {
TextRange::from_to(self.start, self.end).restrict(range)
}
}
impl From<SyntaxText<'_>> for String {
fn from(text: SyntaxText) -> String {
text.to_string()
}
}