Trait leveldb::database::iterator::Iterable [-] [+] [src]

pub trait Iterable<'a, K: Key + 'a> {
    fn iter(&'a self, options: ReadOptions<'a, K>) -> Iterator<K>;
    fn keys_iter(&'a self, options: ReadOptions<'a, K>) -> KeyIterator<K>;
    fn value_iter(&'a self, options: ReadOptions<'a, K>) -> ValueIterator<K>;
}

A trait to allow access to the three main iteration styles of leveldb.

Required Methods

fn iter(&'a self, options: ReadOptions<'a, K>) -> Iterator<K>

Return an Iterator iterating over (Key,Value) pairs

fn keys_iter(&'a self, options: ReadOptions<'a, K>) -> KeyIterator<K>

Returns an Iterator iterating over Keys only.

fn value_iter(&'a self, options: ReadOptions<'a, K>) -> ValueIterator<K>

Returns an Iterator iterating over Values only.

Implementors