pub struct MapDiff<K, V> {
pub added: Vec<Added<(K, V)>>,
pub removed: Vec<Removed<(K, V)>>,
pub updated: Vec<Updated<K, V>>,
pub unchanged: Vec<Unchanged<(K, V)>>,
}Expand description
Deterministic structural diff for a map collection.
Fields§
§added: Vec<Added<(K, V)>>Entries added in stable key order.
removed: Vec<Removed<(K, V)>>Entries removed in stable key order.
updated: Vec<Updated<K, V>>Entries updated in stable key order.
unchanged: Vec<Unchanged<(K, V)>>Entries retained in stable key order.
Implementations§
Trait Implementations§
impl<K: Eq, V: Eq> Eq for MapDiff<K, V>
Source§impl<K: PartialEq, V: PartialEq> PartialEq for MapDiff<K, V>
impl<K: PartialEq, V: PartialEq> PartialEq for MapDiff<K, V>
impl<K: PartialEq, V: PartialEq> StructuralPartialEq for MapDiff<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for MapDiff<K, V>
impl<K, V> RefUnwindSafe for MapDiff<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for MapDiff<K, V>
impl<K, V> Sync for MapDiff<K, V>
impl<K, V> Unpin for MapDiff<K, V>
impl<K, V> UnsafeUnpin for MapDiff<K, V>
impl<K, V> UnwindSafe for MapDiff<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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