Struct patricia_trie::recorder::Recorder
[−]
[src]
pub struct Recorder { /* fields omitted */ }
Records trie nodes as they pass it.
Methods
impl Recorder
[src]
fn new() -> Self
[src]
Create a new Recorder
which records all given nodes.
fn with_depth(depth: u32) -> Self
[src]
Create a Recorder
which only records nodes beyond a given depth.
fn record(&mut self, hash: &H256, data: &[u8], depth: u32)
[src]
Record a visited node, given its hash, data, and depth.
fn drain(&mut self) -> Vec<Record>
[src]
Drain all visited records.