pub enum Delta {
Inserted(Value, Option<Box<Attrs>>),
Deleted(u32),
Retain(u32, Option<Box<Attrs>>),
}Variants
Inserted(Value, Option<Box<Attrs>>)
Determines a change that resulted in insertion of a piece of text, which optionally could have been formatted with provided set of attributes.
Deleted(u32)
Determines a change that resulted in removing a consecutive range of characters.
Retain(u32, Option<Box<Attrs>>)
Determines a number of consecutive unchanged characters. Used to recognize non-edited spaces between Delta::Inserted and/or Delta::Deleted chunks. Can contain an optional set of attributes, which have been used to format an existing piece of text.
Trait Implementations
impl StructuralPartialEq for Delta
Auto Trait Implementations
impl !RefUnwindSafe for Delta
impl !Send for Delta
impl !Sync for Delta
impl Unpin for Delta
impl !UnwindSafe for Delta
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more