Struct leveldb_rs::DBIterator
[−]
[src]
pub struct DBIterator { /* fields omitted */ }
This structure represents an iterator over the database. Note that since the next() function is bounded by a lifetime, it does not (quite) conform to the Iterator trait. To get this, use the alloc() helper.
Methods
impl DBIterator
[src]
fn next<'a>(&'a mut self) -> Option<(&'a [u8], &'a [u8])>
Return the next key/value pair from this iterator.
fn alloc(self) -> DBIteratorAlloc
Return an instance of DBIteratorAlloc, an iterator that implements the
Iterator trait, but allocates new Vec
fn seek_to_first(&mut self)
Seek to the beginning of the database.
fn seek_to_last(&mut self)
Seek to the end of the database.
fn seek(&mut self, key: &[u8])
Seek to the first key in the database that is at or past the given target key.
fn prev(&mut self)
Move to the previous item in the database.