pub enum DiffItem<'a, 'b, A> {
Add(&'b A),
Update {
old: &'a A,
new: &'b A,
},
Remove(&'a A),
}
Expand description
A description of a difference between two ordered sets.
Variants§
Add(&'b 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§
source§impl<'a, 'b, A: PartialEq> PartialEq for DiffItem<'a, 'b, A>
impl<'a, 'b, A: PartialEq> PartialEq for DiffItem<'a, 'b, A>
impl<'a, 'b, A: Eq> Eq for DiffItem<'a, 'b, A>
impl<'a, 'b, A> StructuralPartialEq for DiffItem<'a, 'b, A>
Auto Trait Implementations§
impl<'a, 'b, A> Freeze for DiffItem<'a, 'b, A>
impl<'a, 'b, A> RefUnwindSafe for DiffItem<'a, 'b, A>where
A: RefUnwindSafe,
impl<'a, 'b, A> Send for DiffItem<'a, 'b, A>where
A: Sync,
impl<'a, 'b, A> Sync for DiffItem<'a, 'b, A>where
A: Sync,
impl<'a, 'b, A> Unpin for DiffItem<'a, 'b, A>
impl<'a, 'b, A> UnwindSafe for DiffItem<'a, 'b, 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