pub struct Edit {
pub bytes_range: Range<usize>,
pub inserted_text: String,
pub deleted_text: String,
}Expand description
An individual textual modification within a document transaction.
Fields§
§bytes_range: Range<usize>The byte range in the document before this edit was applied.
inserted_text: StringThe text inserted at Self::bytes_range.
deleted_text: StringThe text that was present at Self::bytes_range before the edit.
Trait Implementations§
impl Eq for Edit
impl StructuralPartialEq for Edit
Auto Trait Implementations§
impl Freeze for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnsafeUnpin for Edit
impl UnwindSafe for Edit
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