Iterable

Trait Iterable 

Source
pub trait Iterable<'a> {
    // Required methods
    fn iter(&'a self, options: &ReadOptions) -> Iterator<'a> ;
    fn keys_iter(&'a self, options: &ReadOptions) -> KeyIterator<'a> ;
    fn value_iter(&'a self, options: &ReadOptions) -> ValueIterator<'a> ;
}
Expand description

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

Required Methods§

Source

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

Return an Iterator iterating over (Key,Value) pairs

Source

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

Returns an Iterator iterating over Keys only.

Source

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

Returns an Iterator iterating over Values only.

Implementors§

Source§

impl<'a> Iterable<'a> for Database

Source§

impl<'a> Iterable<'a> for Snapshot<'a>