pub struct VersionedEntryRef<'a, K, V> { /* private fields */ }Expand description
A snapshot of one version of one key of a
VersionedArtMap.
The handle captures a single version node when it is created, so
value and version always belong
together, whatever writers do meanwhile. Fresh reads are explicit:
latest and get_version_le walk
the current chain.
Bounded by the map borrow and an epoch guard; neither Send nor Sync.
Implementations§
Source§impl<'a, K, V> VersionedEntryRef<'a, K, V>
impl<'a, K, V> VersionedEntryRef<'a, K, V>
Sourcepub fn is_removed(&self) -> bool
pub fn is_removed(&self) -> bool
true if the captured version was deleted when captured. Always
false: handles never capture tombstones.
Sourcepub fn is_superseded(&self) -> bool
pub fn is_superseded(&self) -> bool
true once the captured version has been unlinked: a same-version
insert replaced it, remove or remove_version removed it, a prune
unlinked it, or its whole key was removed, pruned or cleared.
Sourcepub fn latest(&self) -> Option<VersionedEntryRef<'_, K, V>>
pub fn latest(&self) -> Option<VersionedEntryRef<'_, K, V>>
A fresh read of the key’s newest live version, sharing this handle’s protection (no new pin).
Trait Implementations§
Source§impl<K, V> Clone for VersionedEntryRef<'_, K, V>
impl<K, V> Clone for VersionedEntryRef<'_, K, V>
Source§fn clone(&self) -> Self
fn clone(&self) -> Self
Shares the protection (see EntryRef::clone).
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more