Trait matterdb::Iterator[][src]

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 MatterDB is low-level and, therefore, operates with bytes.

Required methods

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

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

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

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...