Trait trie_db::TrieIterator

source ·
pub trait TrieIterator<L: TrieLayout>: Iterator {
    // Required method
    fn seek(&mut self, key: &[u8]) -> Result<(), TrieHash<L>, CError<L>>;
}
Expand description

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

Required Methods§

source

fn seek(&mut self, key: &[u8]) -> Result<(), TrieHash<L>, CError<L>>

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

Implementors§

source§

impl<'a, 'cache, L: TrieLayout> TrieIterator<L> for TrieDBNodeIterator<'a, 'cache, L>

source§

impl<'a, 'cache, L: TrieLayout> TrieIterator<L> for TrieDBIterator<'a, 'cache, L>

source§

impl<'a, 'cache, L: TrieLayout> TrieIterator<L> for TrieDBKeyIterator<'a, 'cache, L>

source§

impl<'db, 'cache, L> TrieIterator<L> for FatDBIterator<'db, 'cache, L>where L: TrieLayout,