pub enum Operation<V, T> {
Insert(V),
Remove,
Abort(T),
}
Expand description
An operation to perform on given entry in a HashMap
.
See HashMap::compute
for details.
Variants§
Insert(V)
Insert the given value.
Remove
Remove the entry from the map.
Abort(T)
Abort the operation with the given value.
Trait Implementations§
impl<V: Eq, T: Eq> Eq for Operation<V, T>
impl<V, T> StructuralPartialEq for Operation<V, T>
Auto Trait Implementations§
impl<V, T> Freeze for Operation<V, T>
impl<V, T> RefUnwindSafe for Operation<V, T>where
V: RefUnwindSafe,
T: RefUnwindSafe,
impl<V, T> Send for Operation<V, T>
impl<V, T> Sync for Operation<V, T>
impl<V, T> Unpin for Operation<V, T>
impl<V, T> UnwindSafe for Operation<V, T>where
V: UnwindSafe,
T: 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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.