[][src]Struct rdms::mvcc::MvccReader

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

Read handle into Mvcc index, that implements both Send and Sync.

Trait Implementations

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

fn get<Q: ?Sized>(&self, key: &Q) -> Result<Entry<K, V>> where
    K: Borrow<Q>,
    Q: Ord
[src]

Get key from index.

fn iter(&self) -> Result<IndexIter<K, V>>[src]

Iterate over all entries in this index.

fn range<'a, R, Q: ?Sized>(&'a self, range: R) -> Result<IndexIter<K, V>> where
    K: Borrow<Q>,
    R: 'a + RangeBounds<Q>,
    Q: 'a + Ord
[src]

Iterate from lower bound to upper bound.

fn reverse<'a, R, Q: ?Sized>(&'a self, range: R) -> Result<IndexIter<K, V>> where
    K: Borrow<Q>,
    R: 'a + RangeBounds<Q>,
    Q: 'a + Ord
[src]

Iterate from upper bound to lower bound.

fn get_with_versions<Q: ?Sized>(&self, key: &Q) -> Result<Entry<K, V>> where
    K: Borrow<Q>,
    Q: Ord
[src]

Short circuited to get().

fn iter_with_versions(&self) -> Result<IndexIter<K, V>>[src]

Short circuited to iter().

fn range_with_versions<'a, R, Q: ?Sized>(
    &'a self,
    r: R
) -> Result<IndexIter<K, V>> where
    K: Borrow<Q>,
    R: 'a + RangeBounds<Q>,
    Q: 'a + Ord
[src]

Short circuited to range().

fn reverse_with_versions<'a, R, Q: ?Sized>(
    &'a self,
    r: R
) -> Result<IndexIter<K, V>> where
    K: Borrow<Q>,
    R: 'a + RangeBounds<Q>,
    Q: 'a + Ord
[src]

Short circuited to reverse()

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

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

Auto Trait Implementations

impl<K, V> Send for MvccReader<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for MvccReader<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for MvccReader<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for MvccReader<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

impl<K, V> RefUnwindSafe for MvccReader<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

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

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

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]