pub enum DiffItem<'a, A> {
Add(&'a A),
Update {
old: &'a A,
new: &'a A,
},
Remove(&'a A),
}
Expand description
A description of a difference between two ordered sets.
Variants§
Add(&'a A)
This value has been added to the new set.
Update
This value has been changed between the two sets.
Remove(&'a A)
This value has been removed from the new set.
Trait Implementations§
impl<'a, A: Eq> Eq for DiffItem<'a, A>
impl<'a, A> StructuralPartialEq for DiffItem<'a, A>
Auto Trait Implementations§
impl<'a, A> Freeze for DiffItem<'a, A>
impl<'a, A> RefUnwindSafe for DiffItem<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for DiffItem<'a, A>where
A: Sync,
impl<'a, A> Sync for DiffItem<'a, A>where
A: Sync,
impl<'a, A> Unpin for DiffItem<'a, A>
impl<'a, A> UnwindSafe for DiffItem<'a, A>where
A: RefUnwindSafe,
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