Struct miden_crypto::utils::collections::KvMapDiff
source · pub struct KvMapDiff<K, V> {
pub updated: BTreeMap<K, V>,
pub removed: BTreeSet<K>,
}
Expand description
KvMapDiff stores the difference between two key-value maps.
The KvMapDiff is composed of two parts:
updates
- a map of key-value pairs that were updated in the second map compared to the first map. This includes new key-value pairs.removed
- a set of keys that were removed from the second map compared to the first map.
Fields§
§updated: BTreeMap<K, V>
§removed: BTreeSet<K>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for KvMapDiff<K, V>where K: RefUnwindSafe, V: RefUnwindSafe,
impl<K, V> Send for KvMapDiff<K, V>where K: Send, V: Send,
impl<K, V> Sync for KvMapDiff<K, V>where K: Sync, V: Sync,
impl<K, V> Unpin for KvMapDiff<K, V>
impl<K, V> UnwindSafe for KvMapDiff<K, V>where K: RefUnwindSafe, V: RefUnwindSafe,
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