[−][src]Struct rdms::Entry
Entry is the covering structure for a {Key, value} pair indexed by rdms data structures.
It is a user facing structure, also used in stitching together different components of [Rdms].
Methods
impl<K, V> Entry<K, V> where
K: Clone + Ord,
V: Clone + Diff,
[src]
K: Clone + Ord,
V: Clone + Diff,
pub const KEY_SIZE_LIMIT: usize
[src]
pub const DIFF_SIZE_LIMIT: usize
[src]
pub const VALUE_SIZE_LIMIT: usize
[src]
impl<K, V> Entry<K, V> where
K: Clone + Ord,
V: Clone + Diff + From<<V as Diff>::D>,
[src]
K: Clone + Ord,
V: Clone + Diff + From<<V as Diff>::D>,
ⓘImportant traits for VersionIter<K, V>pub fn versions(&self) -> VersionIter<K, V>
[src]
Return an iterator for all existing versions for this entry.
impl<K, V> Entry<K, V> where
K: Clone + Ord,
V: Clone + Diff,
[src]
K: Clone + Ord,
V: Clone + Diff,
pub fn as_key(&self) -> &K
[src]
Return a reference to key.
pub fn to_key(&self) -> K
[src]
Return owned key vlalue.
pub fn to_native_value(&self) -> Option<V>
[src]
Return value. If entry is marked as deleted, return None.
pub fn to_seqno(&self) -> u64
[src]
Return the latest seqno that created/updated/deleted this entry.
pub fn to_seqno_state(&self) -> (bool, u64)
[src]
Return the seqno and the state of modification. true
means
latest value was a create/update, and false
means latest value
was deleted.
pub fn is_deleted(&self) -> bool
[src]
Return whether this entry is in deleted state, applicable onle in lsm mode.
impl<K, V> Entry<K, V> where
K: Clone + Ord + Footprint,
V: Clone + Diff + Footprint,
[src]
K: Clone + Ord + Footprint,
V: Clone + Diff + Footprint,
Trait Implementations
Auto Trait Implementations
impl<K, V> Send for Entry<K, V> where
K: Send,
V: Send,
<V as Diff>::D: Send,
K: Send,
V: Send,
<V as Diff>::D: Send,
impl<K, V> Sync for Entry<K, V> where
K: Sync,
V: Sync,
<V as Diff>::D: Sync,
K: Sync,
V: Sync,
<V as Diff>::D: Sync,
impl<K, V> Unpin for Entry<K, V> where
K: Unpin,
<V as Diff>::D: Unpin,
K: Unpin,
<V as Diff>::D: Unpin,
impl<K, V> UnwindSafe for Entry<K, V> where
K: UnwindSafe,
V: UnwindSafe,
<V as Diff>::D: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
<V as Diff>::D: UnwindSafe,
impl<K, V> RefUnwindSafe for Entry<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
<V as Diff>::D: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
<V as Diff>::D: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,