pub struct TextDelta {
pub before_char_count: usize,
pub after_char_count: usize,
pub edits: Vec<TextDeltaEdit>,
pub undo_group_id: Option<usize>,
}Expand description
A structured description of a document text change.
Fields§
§before_char_count: usizeCharacter count before applying edits.
after_char_count: usizeCharacter count after applying edits.
edits: Vec<TextDeltaEdit>Ordered list of edits that transforms the “before” document into the “after” document.
undo_group_id: Option<usize>If known, the undo group id associated with this change.
Implementations§
Trait Implementations§
impl Eq for TextDelta
impl StructuralPartialEq for TextDelta
Auto Trait Implementations§
impl Freeze for TextDelta
impl RefUnwindSafe for TextDelta
impl Send for TextDelta
impl Sync for TextDelta
impl Unpin for TextDelta
impl UnsafeUnpin for TextDelta
impl UnwindSafe for TextDelta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more