[][src]Enum im::ordmap::DiffItem

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),
}

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.

Fields of Update

old: (&'a K, &'a V)

The old value.

new: (&'a K, &'a V)

The new value.

Remove(&'a K, &'a V)

This value has been removed from the new map.

Trait Implementations

impl<'a, K: Debug, V: Debug> Debug for DiffItem<'a, K, V>[src]

impl<'a, K: Eq, V: Eq> Eq for DiffItem<'a, K, V>[src]

impl<'a, K: PartialEq, V: PartialEq> PartialEq<DiffItem<'a, K, V>> for DiffItem<'a, K, V>[src]

impl<'a, K, V> StructuralEq for DiffItem<'a, K, V>[src]

impl<'a, K, V> StructuralPartialEq for DiffItem<'a, K, V>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,