[][src]Struct diff::HashMapDiff

pub struct HashMapDiff<K, V> where
    K: Eq + Hash + Clone,
    V: Diff,
    <V as Diff>::Repr: Debug + PartialEq
{ 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: Debug, V: Debug> Debug for HashMapDiff<K, V> where
    K: Eq + Hash + Clone,
    V: Diff,
    <V as Diff>::Repr: Debug + PartialEq
[src]

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

impl<K, V> StructuralPartialEq for HashMapDiff<K, V> where
    K: Eq + Hash + Clone,
    V: Diff,
    <V as Diff>::Repr: Debug + PartialEq
[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> From<T> for T[src]

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

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.