Struct leveldb::database::iterator::Iterator [-] [+] [src]

pub struct Iterator<'a, K: Key + 'a> {
    // some fields omitted

An iterator over the leveldb keyspace.

Returns key and value as a tuple.


impl<'a, K: Key> Iterator<'a, K>

fn last(self) -> Option<(K, Vec<u8>)>

return the last element of the iterator

Trait Implementations

impl<'a, K: Key> LevelDBIterator<K> for Iterator<'a, K>

fn raw_iterator(&self) -> *mut leveldb_iterator_t

fn start(&self) -> bool

fn started(&mut self)

fn valid(&self) -> bool

fn advance(&mut self) -> bool

fn key(&self) -> K

fn value(&self) -> Vec<u8>

impl<'a, K: Key> LevelDBIteratorExt<K> for Iterator<'a, K>

fn seek_to_first(&self)

fn seek_to_last(&self)

fn seek(&self, key: K)

impl<'a, K: Key> Iterator for Iterator<'a, K>

type Item = (K, Vec<u8>)

fn next(&mut self) -> Option<(K, Vec<u8>)>

fn size_hint(&self) -> (usize, Option<usize>)