Struct trie_db::TrieDBNodeIterator[][src]

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

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

Implementations

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

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

Create a new iterator.

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

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

Advance the iterator into a prefix, no value out of the prefix will be accessed or returned after this operation.

Trait Implementations

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

type Item = Result<(NibbleVec, Option<TrieHash<L>>, Rc<OwnedNode<DBValue>>), TrieHash<L>, CError<L>>

The type of the elements being iterated over.

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

Auto Trait Implementations

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

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

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

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

impl<'a, L> !UnwindSafe for TrieDBNodeIterator<'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.