[][src]Struct reference_trie::TrieDBNodeIterator

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

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

Implementations

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

pub fn new(
    db: &'a TrieDB<L>
) -> Result<TrieDBNodeIterator<'a, L>, Box<TrieError<<<L as TrieLayout>::Hash as Hasher>::Out, <<L as TrieLayout>::Codec as NodeCodec>::Error>>>
[src]

Create a new iterator.

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

pub fn prefix(
    &mut self,
    prefix: &[u8]
) -> Result<(), Box<TrieError<<<L as TrieLayout>::Hash as Hasher>::Out, <<L as TrieLayout>::Codec as NodeCodec>::Error>>>
[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> Iterator for TrieDBNodeIterator<'a, L> where
    L: TrieLayout
[src]

type Item = Result<(NibbleVec, Option<<<L as TrieLayout>::Hash as Hasher>::Out>, Rc<OwnedNode<Vec<u8>>>), Box<TrieError<<<L as TrieLayout>::Hash as Hasher>::Out, <<L as TrieLayout>::Codec as NodeCodec>::Error>>>

The type of the elements being iterated over.

impl<'a, L> TrieIterator<L> for TrieDBNodeIterator<'a, L> where
    L: TrieLayout
[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: Hasher,
    <<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.