pub enum EntryData<K, V> {
Insert {
key: K,
value: V,
},
Remove(K),
}
Expand description
The data of the Entry
.
Variants§
Implementations§
Trait Implementations§
source§impl<K, V> CheapClone for EntryData<K, V>where
K: CheapClone,
V: CheapClone,
impl<K, V> CheapClone for EntryData<K, V>where
K: CheapClone,
V: CheapClone,
source§fn cheap_clone(&self) -> EntryData<K, V>
fn cheap_clone(&self) -> EntryData<K, V>
Returns a copy of the value.
source§impl<K, V> Ord for EntryData<K, V>
impl<K, V> Ord for EntryData<K, V>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<K, V> PartialEq for EntryData<K, V>
impl<K, V> PartialEq for EntryData<K, V>
source§impl<K, V> PartialOrd for EntryData<K, V>
impl<K, V> PartialOrd for EntryData<K, V>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<K, V> Eq for EntryData<K, V>
impl<K, V> StructuralPartialEq for EntryData<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for EntryData<K, V>
impl<K, V> RefUnwindSafe for EntryData<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for EntryData<K, V>
impl<K, V> Sync for EntryData<K, V>
impl<K, V> Unpin for EntryData<K, V>
impl<K, V> UnwindSafe for EntryData<K, V>where
K: UnwindSafe,
V: 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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.