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