[][src]Struct diff::HashMapDiff

pub struct HashMapDiff<K: Hash + Eq, V: Diff> {
    pub altered: HashMap<K, <V as Diff>::Repr>,
    pub removed: HashSet<K>,
}

The diff struct used to compare two HashMap's

Fields

altered: HashMap<K, <V as Diff>::Repr>

Values that are changed or added

removed: HashSet<K>

Values that are removed

Trait Implementations

impl<K: Eq + Hash, V: Diff> Clone for HashMapDiff<K, V> where
    K: Clone,
    V::Repr: Clone
[src]

impl<K: Eq + Hash, V: Diff> Debug for HashMapDiff<K, V> where
    K: Debug,
    V::Repr: Debug
[src]

impl<'de, K: Hash + Eq, V: Diff> Deserialize<'de> for HashMapDiff<K, V> where
    V::Repr: Deserialize<'de>,
    K: Deserialize<'de>, 
[src]

impl<K: Eq + Hash, V: Diff> PartialEq<HashMapDiff<K, V>> for HashMapDiff<K, V> where
    V::Repr: PartialEq
[src]

impl<K: Hash + Eq, V: Diff> Serialize for HashMapDiff<K, V> where
    V::Repr: Serialize,
    K: Serialize
[src]

Auto Trait Implementations

impl<K, V> RefUnwindSafe for HashMapDiff<K, V> where
    K: RefUnwindSafe,
    <V as Diff>::Repr: RefUnwindSafe

impl<K, V> Send for HashMapDiff<K, V> where
    K: Send,
    <V as Diff>::Repr: Send

impl<K, V> Sync for HashMapDiff<K, V> where
    K: Sync,
    <V as Diff>::Repr: Sync

impl<K, V> Unpin for HashMapDiff<K, V> where
    K: Unpin,
    <V as Diff>::Repr: Unpin

impl<K, V> UnwindSafe for HashMapDiff<K, V> where
    K: UnwindSafe,
    <V as Diff>::Repr: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.