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§
impl<Key: Eq, Value: Eq> Eq for Removed<Key, Value>
impl<Key, Value> StructuralPartialEq for Removed<Key, Value>
Auto Trait Implementations§
impl<Key, Value> Freeze for Removed<Key, Value>
impl<Key, Value> RefUnwindSafe for Removed<Key, Value>where
Value: RefUnwindSafe,
Key: RefUnwindSafe,
impl<Key, Value> Send for Removed<Key, Value>
impl<Key, Value> Sync for Removed<Key, Value>
impl<Key, Value> Unpin for Removed<Key, Value>
impl<Key, Value> UnwindSafe for Removed<Key, Value>where
Value: UnwindSafe,
Key: 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