pub enum Removed<Key, Value> {
PreviousValue(Value),
Evicted(Key, Value),
}
Expand description
A removed value or entry.
Variants
PreviousValue(Value)
The previously stored value for the key that was written to.
Evicted(Key, Value)
An entry was evicted to make room for the key that was written to.
Trait Implementations
sourceimpl<Key: PartialEq, Value: PartialEq> PartialEq<Removed<Key, Value>> for Removed<Key, Value>
impl<Key: PartialEq, Value: PartialEq> PartialEq<Removed<Key, Value>> for Removed<Key, Value>
impl<Key: Eq, Value: Eq> Eq for Removed<Key, Value>
impl<Key, Value> StructuralEq for Removed<Key, Value>
impl<Key, Value> StructuralPartialEq for Removed<Key, Value>
Auto Trait Implementations
impl<Key, Value> RefUnwindSafe for Removed<Key, Value>where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> Send for Removed<Key, Value>where
Key: Send,
Value: Send,
impl<Key, Value> Sync for Removed<Key, Value>where
Key: Sync,
Value: Sync,
impl<Key, Value> Unpin for Removed<Key, Value>where
Key: Unpin,
Value: Unpin,
impl<Key, Value> UnwindSafe for Removed<Key, Value>where
Key: UnwindSafe,
Value: 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
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more