[][src]Struct rdms::Entry

pub struct Entry<K, V> where
    K: Clone + Ord,
    V: Clone + Diff
{ /* fields omitted */ }

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]

impl<K, V> Entry<K, V> where
    K: Clone + Ord,
    V: Clone + Diff + From<<V as Diff>::D>, 
[src]

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]

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]

pub fn footprint(&self) -> isize[src]

Return the previous versions of this entry as Deltas.

Trait Implementations

impl<K: Clone, V: Clone> Clone for Entry<K, V> where
    K: Clone + Ord,
    V: Clone + Diff
[src]

Auto Trait Implementations

impl<K, V> Send for Entry<K, V> where
    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

impl<K, V> Unpin for Entry<K, V> where
    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

impl<K, V> RefUnwindSafe for Entry<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe,
    <V as Diff>::D: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]