Struct engine_rocks::raw::DBIterator[][src]

pub struct DBIterator<D> {
    _db: D,
    _readopts: ReadOptions,
    inner: *mut DBIterator,
}

Fields

_db: D_readopts: ReadOptionsinner: *mut DBIterator

Implementations

impl<D> DBIterator<D> where
    D: Deref<Target = DB>, 
[src]

pub fn new(db: D, readopts: ReadOptions) -> DBIterator<D>

Notable traits for &'b mut DBIterator<D>

impl<'b, D> Iterator for &'b mut DBIterator<D> type Item = (Vec<u8, Global>, Vec<u8, Global>);
[src]

pub fn new_cf(
    db: D,
    cf_handle: &CFHandle,
    readopts: ReadOptions
) -> DBIterator<D>

Notable traits for &'b mut DBIterator<D>

impl<'b, D> Iterator for &'b mut DBIterator<D> type Item = (Vec<u8, Global>, Vec<u8, Global>);
[src]

impl<D> DBIterator<D>[src]

pub fn seek(&mut self, key: SeekKey<'_>) -> Result<bool, String>[src]

pub fn seek_for_prev(&mut self, key: SeekKey<'_>) -> Result<bool, String>[src]

pub fn prev(&mut self) -> Result<bool, String>[src]

pub fn next(&mut self) -> Result<bool, String>[src]

pub fn key(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Get the key pointed by the iterator. Must be called when self.valid() == Ok(true).

pub fn value(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Get the value pointed by the iterator. Must be called when self.valid() == Ok(true).

pub fn sequence(&self) -> Option<u64>[src]

pub fn kv(&self) -> Option<(Vec<u8, Global>, Vec<u8, Global>)>[src]

👎 Deprecated

pub fn valid(&self) -> Result<bool, String>[src]

Trait Implementations

impl<D> Drop for DBIterator<D>[src]

impl<'b, D> Iterator for &'b mut DBIterator<D>[src]

type Item = (Vec<u8, Global>, Vec<u8, Global>)

The type of the elements being iterated over.

impl<D> Send for DBIterator<D> where
    D: Send
[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for DBIterator<D> where
    D: RefUnwindSafe

impl<D> !Sync for DBIterator<D>

impl<D> Unpin for DBIterator<D> where
    D: Unpin

impl<D> UnwindSafe for DBIterator<D> where
    D: UnwindSafe

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]