pub struct HashMapDiff<K: Hash + Eq, V: Diff> {
pub altered: HashMap<K, <V as Diff>::Repr>,
pub removed: HashSet<K>,
}
Expand description
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§
Source§impl<K, V: Diff> Clone for HashMapDiff<K, V>
impl<K, V: Diff> Clone for HashMapDiff<K, V>
Source§impl<K, V: Diff> Debug for HashMapDiff<K, V>
impl<K, V: Diff> Debug for HashMapDiff<K, V>
Source§impl<'de, K, V: Diff> Deserialize<'de> for HashMapDiff<K, V>
impl<'de, K, V: Diff> Deserialize<'de> for HashMapDiff<K, V>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<K, V> Freeze for HashMapDiff<K, V>
impl<K, V> RefUnwindSafe for HashMapDiff<K, V>
impl<K, V> Send for HashMapDiff<K, V>
impl<K, V> Sync for HashMapDiff<K, V>
impl<K, V> Unpin for HashMapDiff<K, V>
impl<K, V> UnwindSafe for HashMapDiff<K, V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more