pub enum Diff<T> {
Modified(T, T),
Added(T),
Removed(T),
}
Variants§
Implementations§
Trait Implementations§
source§impl<T: PartialEq> PartialEq<Diff<T>> for Diff<T>
impl<T: PartialEq> PartialEq<Diff<T>> for Diff<T>
impl<T: Eq> Eq for Diff<T>
impl<T> StructuralEq for Diff<T>
impl<T> StructuralPartialEq for Diff<T>
Auto Trait Implementations§
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