pub enum Compute<'g, K, V, T> {
Inserted(&'g K, &'g V),
Updated {
old: (&'g K, &'g V),
new: (&'g K, &'g V),
},
Removed(&'g K, &'g V),
Aborted(T),
}
Expand description
Variants§
Inserted(&'g K, &'g V)
The given entry was inserted.
Updated
The entry was updated.
Fields
Removed(&'g K, &'g V)
The given entry was removed.
Aborted(T)
The operation was aborted with the given value.
Trait Implementations§
impl<'g, K: Eq, V: Eq, T: Eq> Eq for Compute<'g, K, V, T>
impl<'g, K, V, T> StructuralPartialEq for Compute<'g, K, V, T>
Auto Trait Implementations§
impl<'g, K, V, T> Freeze for Compute<'g, K, V, T>where
T: Freeze,
impl<'g, K, V, T> RefUnwindSafe for Compute<'g, K, V, T>
impl<'g, K, V, T> Send for Compute<'g, K, V, T>
impl<'g, K, V, T> Sync for Compute<'g, K, V, T>
impl<'g, K, V, T> Unpin for Compute<'g, K, V, T>where
T: Unpin,
impl<'g, K, V, T> UnwindSafe for Compute<'g, K, V, T>
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.