[][src]Trait exonum_merkledb::Iterator

pub trait Iterator {
    fn next(&mut self) -> Option<(&[u8], &[u8])>;
fn peek(&mut self) -> Option<(&[u8], &[u8])>; }

A trait that defines a streaming iterator over storage view entries. Unlike the standard Iterator trait, Iterator in Exonum is low-level and, therefore, operates with bytes.

Required methods

fn next(&mut self) -> Option<(&[u8], &[u8])>

Advances the iterator and returns a reference to the next key and value.

fn peek(&mut self) -> Option<(&[u8], &[u8])>

Returns a reference to the current key and value without advancing the iterator.

Loading content...

Trait Implementations

impl Debug for dyn Iterator[src]

Implementors

Loading content...