pub enum Operation<K, V> {
Replace(K, V),
Add(K, V),
Remove(K, V),
Empty(K),
Clear(K),
}
Expand description
A pending map operation.
Variants
Replace(K, V)
Replace the set of entries for this key with this value.
Add(K, V)
Add this value to the set of entries for this key.
Remove(K, V)
Remove this value from the set of entries for this key.
Empty(K)
Remove the value set for this key.
Clear(K)
Remove all values in the value set for this key.
Trait Implementations
sourceimpl<K: PartialEq, V: PartialEq> PartialEq<Operation<K, V>> for Operation<K, V>
impl<K: PartialEq, V: PartialEq> PartialEq<Operation<K, V>> for Operation<K, V>
impl<K: Eq, V: Eq> Eq for Operation<K, V>
impl<K, V> StructuralEq for Operation<K, V>
impl<K, V> StructuralPartialEq for Operation<K, V>
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Operation<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Operation<K, V>where
K: Send,
V: Send,
impl<K, V> Sync for Operation<K, V>where
K: Sync,
V: Sync,
impl<K, V> Unpin for Operation<K, V>where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Operation<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more