Enum async_txn::EntryDataRef
source · pub enum EntryDataRef<'a, K, V> {
Insert {
key: &'a K,
value: &'a V,
},
Remove(&'a K),
}
Expand description
The reference of the EntryData
.
Variants§
Trait Implementations§
source§impl<'a, K, V> Clone for EntryDataRef<'a, K, V>
impl<'a, K, V> Clone for EntryDataRef<'a, K, V>
source§fn clone(&self) -> EntryDataRef<'a, K, V>
fn clone(&self) -> EntryDataRef<'a, K, V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, K, V> Debug for EntryDataRef<'a, K, V>
impl<'a, K, V> Debug for EntryDataRef<'a, K, V>
source§impl<'a, K, V> Hash for EntryDataRef<'a, K, V>
impl<'a, K, V> Hash for EntryDataRef<'a, K, V>
source§impl<'a, K, V> PartialEq for EntryDataRef<'a, K, V>
impl<'a, K, V> PartialEq for EntryDataRef<'a, K, V>
source§fn eq(&self, other: &EntryDataRef<'a, K, V>) -> bool
fn eq(&self, other: &EntryDataRef<'a, K, V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a, K, V> Copy for EntryDataRef<'a, K, V>
impl<'a, K, V> Eq for EntryDataRef<'a, K, V>
impl<'a, K, V> StructuralPartialEq for EntryDataRef<'a, K, V>
Auto Trait Implementations§
impl<'a, K, V> Freeze for EntryDataRef<'a, K, V>
impl<'a, K, V> RefUnwindSafe for EntryDataRef<'a, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for EntryDataRef<'a, K, V>
impl<'a, K, V> Sync for EntryDataRef<'a, K, V>
impl<'a, K, V> Unpin for EntryDataRef<'a, K, V>
impl<'a, K, V> UnwindSafe for EntryDataRef<'a, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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§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.