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§
source§impl<'a, K, V> PartialEq<DiffItem<'a, K, V>> for DiffItem<'a, K, V>where
K: PartialEq<K>,
V: PartialEq<V>,
impl<'a, K, V> PartialEq<DiffItem<'a, K, V>> for DiffItem<'a, K, V>where K: PartialEq<K>, V: PartialEq<V>,
impl<'a, K, V> Eq for DiffItem<'a, K, V>where K: Eq, V: Eq,
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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.