Struct trie_db::triedb::TrieDBIterator[][src]

pub struct TrieDBIterator<'a, L: TrieLayout> { /* fields omitted */ }

Iterator for going through all values in the trie in pre-order traversal order.

Implementations

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

pub fn new(
    db: &'a TrieDB<'_, L>
) -> Result<TrieDBIterator<'a, L>, TrieHash<L>, CError<L>>
[src]

Create a new iterator.

pub fn new_prefixed(
    db: &'a TrieDB<'_, L>,
    prefix: &[u8]
) -> Result<TrieDBIterator<'a, L>, TrieHash<L>, CError<L>>
[src]

Create a new iterator, but limited to a given prefix.

Trait Implementations

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

type Item = TrieItem<'a, TrieHash<L>, CError<L>>

The type of the elements being iterated over.

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

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

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

Auto Trait Implementations

impl<'a, L> !RefUnwindSafe for TrieDBIterator<'a, L>

impl<'a, L> !Send for TrieDBIterator<'a, L>

impl<'a, L> !Sync for TrieDBIterator<'a, L>

impl<'a, L> Unpin for TrieDBIterator<'a, L> where
    <<L as TrieLayout>::Hash as Hasher>::Out: Unpin

impl<'a, L> !UnwindSafe for TrieDBIterator<'a, L>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.