Enum Cursor

Source
pub enum Cursor<'txn, 'db> {
    VolatileCursor(VolatileCursor<'txn, 'db>),
    PersistentCursor(LmdbCursor<'txn, 'db>),
}

Variants§

§

VolatileCursor(VolatileCursor<'txn, 'db>)

§

PersistentCursor(LmdbCursor<'txn, 'db>)

Implementations§

Source§

impl<'txn, 'db> Cursor<'txn, 'db>

Source

pub fn first<K, V>(&mut self) -> Option<(K, V)>

Source

pub fn first_duplicate<V>(&mut self) -> Option<V>

Source

pub fn last<K, V>(&mut self) -> Option<(K, V)>

Source

pub fn last_duplicate<V>(&mut self) -> Option<V>

Source

pub fn seek_key_value<K, V>(&mut self, key: &K, value: &V) -> bool

Source

pub fn seek_key_nearest_value<K, V>(&mut self, key: &K, value: &V) -> Option<V>

Source

pub fn get_current<K, V>(&mut self) -> Option<(K, V)>

Source

pub fn next<K, V>(&mut self) -> Option<(K, V)>

Source

pub fn next_duplicate<K, V>(&mut self) -> Option<(K, V)>

Source

pub fn next_no_duplicate<K, V>(&mut self) -> Option<(K, V)>

Source

pub fn prev<K, V>(&mut self) -> Option<(K, V)>

Source

pub fn prev_duplicate<K, V>(&mut self) -> Option<(K, V)>

Source

pub fn prev_no_duplicate<K, V>(&mut self) -> Option<(K, V)>

Source

pub fn seek_key<K, V>(&mut self, key: &K) -> Option<V>

Source

pub fn seek_key_both<K, V>(&mut self, key: &K) -> Option<(K, V)>

Source

pub fn seek_range_key<K, V>(&mut self, key: &K) -> Option<(K, V)>

Source

pub fn count_duplicates(&mut self) -> usize

Auto Trait Implementations§

§

impl<'txn, 'db> Freeze for Cursor<'txn, 'db>

§

impl<'txn, 'db> !RefUnwindSafe for Cursor<'txn, 'db>

§

impl<'txn, 'db> !Send for Cursor<'txn, 'db>

§

impl<'txn, 'db> !Sync for Cursor<'txn, 'db>

§

impl<'txn, 'db> Unpin for Cursor<'txn, 'db>

§

impl<'txn, 'db> !UnwindSafe for Cursor<'txn, 'db>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SafeBorrow<T> for T
where T: ?Sized,

Source§

fn borrow_replacement(ptr: &T) -> &T

Given ptr, which was obtained from a prior call to Self::borrow(), return a value with the same nominal lifetime which is guaranteed to survive mutations to Self. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Erased for T