pub enum DiffItem<'a, K, V> {
Add(&'a K, &'a V),
Update {
old: (&'a K, &'a V),
new: (&'a K, &'a V),
},
Remove(&'a K, &'a V),
}
Expand description
A description of a difference between two ordered maps.
Variants
Add(&'a K, &'a 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
impl<'a, K: Eq, V: Eq> Eq for DiffItem<'a, K, V>
impl<'a, K, V> StructuralEq for DiffItem<'a, K, V>
impl<'a, K, V> StructuralPartialEq for DiffItem<'a, K, V>
Auto Trait Implementations
impl<'a, K, V> RefUnwindSafe for DiffItem<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for DiffItem<'a, K, V> where
K: Sync,
V: Sync,
impl<'a, K, V> Sync for DiffItem<'a, K, V> where
K: Sync,
V: Sync,
impl<'a, K, V> Unpin for DiffItem<'a, K, V>
impl<'a, K, V> UnwindSafe for DiffItem<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more