Struct patricia_trie::recorder::Recorder[][src]

pub struct Recorder<HO> { /* fields omitted */ }

Records trie nodes as they pass it.

Methods

impl<HO: Copy> Recorder<HO>
[src]

Create a new Recorder which records all given nodes.

Create a Recorder which only records nodes beyond a given depth.

Record a visited node, given its hash, data, and depth.

Drain all visited records.

Trait Implementations

impl<HO: Debug> Debug for Recorder<HO>
[src]

Formats the value using the given formatter. Read more

impl<HO: Copy> Default for Recorder<HO>
[src]

Returns the "default value" for a type. Read more

impl<'a, H: Hasher> Query<H> for &'a mut Recorder<H::Out>
[src]

Output item.

Decode a byte-slice into the desired item.

Record that a node has been passed through.

Auto Trait Implementations

impl<HO> Send for Recorder<HO> where
    HO: Send

impl<HO> Sync for Recorder<HO> where
    HO: Sync