pub struct Diff<T: DType>(/* private fields */);
Expand description
A structure representing a diff
(Ops::Delete, String::new(“Hello”)) means delete Hello
(Ops::Insert, String::new(“Goodbye”)) means add Goodbye
(Ops::Equal, String::new(“World”)) means keep world
Implementations§
Trait Implementations§
impl<T: Eq + DType> Eq for Diff<T>
impl<T: DType> StructuralPartialEq for Diff<T>
Auto Trait Implementations§
impl<T> Freeze for Diff<T>
impl<T> RefUnwindSafe for Diff<T>where
T: RefUnwindSafe,
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>where
T: UnwindSafe,
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