Trait tetsy_reference_trie::TrieIterator[][src]

pub trait TrieIterator<L>: Iterator where
    L: TrieLayout
{ pub fn seek(
        &mut self,
        key: &[u8]
    ) -> Result<(), Box<TrieError<<<L as TrieLayout>::Hash as Hasher>::Out, <<L as TrieLayout>::Codec as NodeCodec>::Error>, Global>>; }

A trie iterator that also supports random access (seek()).

Required methods

pub fn seek(
    &mut self,
    key: &[u8]
) -> Result<(), Box<TrieError<<<L as TrieLayout>::Hash as Hasher>::Out, <<L as TrieLayout>::Codec as NodeCodec>::Error>, Global>>
[src]

Position the iterator on the first element with key >= key

Loading content...

Implementations on Foreign Types

impl<'db, L> TrieIterator<L> for FatDBIterator<'db, L> where
    L: TrieLayout
[src]

Loading content...

Implementors

impl<'a, L> TrieIterator<L> for TrieDBIterator<'a, L> where
    L: TrieLayout
[src]

pub fn seek(
    &mut self,
    key: &[u8]
) -> Result<(), Box<TrieError<<<L as TrieLayout>::Hash as Hasher>::Out, <<L as TrieLayout>::Codec as NodeCodec>::Error>, Global>>
[src]

Position the iterator on the first element with key >= key

impl<'a, L> TrieIterator<L> for TrieDBNodeIterator<'a, L> where
    L: TrieLayout
[src]

Loading content...