Struct diff_match_patch_rs::dmp::Diff
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)