pub struct Diff<T> {
pub insert: Out,
pub attributes: Option<Box<Attrs>>,
pub ychange: Option<T>,
}Expand description
A representation of an uniformly-formatted chunk of rich context stored by TextRef or XmlTextRef. It contains a value (which could be a string, embedded object or another shared type) with optional formatting attributes wrapping around this chunk. It can also contain some custom data generated by caller as part of TextRef::diff callback.
Fields§
§insert: OutInserted chunk of data. It can be (usually) piece of text, but possibly also embedded value or another shared type.
attributes: Option<Box<Attrs>>Optional formatting attributes wrapping inserted chunk of data.
ychange: Option<T>Custom user data attached to this chunk of data.
Implementations§
Trait Implementations§
impl<T> StructuralPartialEq for Diff<T>
Auto Trait Implementations§
impl<T> Freeze for Diff<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Diff<T>
impl<T> Send for Diff<T>where
T: Send,
impl<T> Sync for Diff<T>where
T: Sync,
impl<T> Unpin for Diff<T>where
T: Unpin,
impl<T> !UnwindSafe for Diff<T>
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