This commit is contained in:
Aleksey Kladov 2020-05-06 13:08:37 +02:00
parent 4de3c3eedc
commit 1116c9a0e9
3 changed files with 17 additions and 19 deletions

View file

@ -71,6 +71,10 @@ impl TextEdit {
TextEdit { indels }
}
pub fn is_empty(&self) -> bool {
self.indels.is_empty()
}
pub fn as_indels(&self) -> &[Indel] {
&self.indels
}