Struct async_txn::EntryValue
source · pub struct EntryValue<V> {
pub version: u64,
pub value: Option<V>,
}
Expand description
A entry value
Fields§
§version: u64
The version of the entry.
value: Option<V>
The value of the entry.
Trait Implementations§
source§impl<V> CheapClone for EntryValue<V>where
V: CheapClone,
impl<V> CheapClone for EntryValue<V>where
V: CheapClone,
source§fn cheap_clone(&self) -> EntryValue<V>
fn cheap_clone(&self) -> EntryValue<V>
Returns a copy of the value.
source§impl<V> Clone for EntryValue<V>where
V: Clone,
impl<V> Clone for EntryValue<V>where
V: Clone,
source§fn clone(&self) -> EntryValue<V>
fn clone(&self) -> EntryValue<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<V> Debug for EntryValue<V>where
V: Debug,
impl<V> Debug for EntryValue<V>where
V: Debug,
source§impl<V> Hash for EntryValue<V>where
V: Hash,
impl<V> Hash for EntryValue<V>where
V: Hash,
source§impl<V> PartialEq for EntryValue<V>where
V: PartialEq,
impl<V> PartialEq for EntryValue<V>where
V: PartialEq,
source§fn eq(&self, other: &EntryValue<V>) -> bool
fn eq(&self, other: &EntryValue<V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<V> Eq for EntryValue<V>where
V: Eq,
impl<V> StructuralPartialEq for EntryValue<V>
Auto Trait Implementations§
impl<V> Freeze for EntryValue<V>where
V: Freeze,
impl<V> RefUnwindSafe for EntryValue<V>where
V: RefUnwindSafe,
impl<V> Send for EntryValue<V>where
V: Send,
impl<V> Sync for EntryValue<V>where
V: Sync,
impl<V> Unpin for EntryValue<V>where
V: Unpin,
impl<V> UnwindSafe for EntryValue<V>where
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> 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.