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

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

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

Return an Iterator iterating over (Key,Value) pairs

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

Returns an Iterator iterating over Keys only.

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

Returns an Iterator iterating over Values only.

Loading content...

Implementors

impl<'a, K: Key + 'a> Iterable<'a, K> for Snapshot<'a, K>[src]

impl<'a, K: Key + 'a> Iterable<'a, K> for Database<K>[src]

Loading content...