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]
impl<HO: Copy> Recorder<HO>pub fn new() -> Self[src]
pub fn new() -> SelfCreate a new Recorder which records all given nodes.
pub fn with_depth(depth: u32) -> Self[src]
pub fn with_depth(depth: u32) -> SelfCreate a Recorder which only records nodes beyond a given depth.
pub fn record(&mut self, hash: &HO, data: &[u8], depth: u32)[src]
pub fn record(&mut self, hash: &HO, data: &[u8], depth: u32)Record a visited node, given its hash, data, and depth.
pub fn drain(&mut self) -> Vec<Record<HO>>[src]
pub fn drain(&mut self) -> Vec<Record<HO>>Drain all visited records.
Trait Implementations
impl<HO: Debug> Debug for Recorder<HO>[src]
impl<HO: Debug> Debug for Recorder<HO>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<HO: Copy> Default for Recorder<HO>[src]
impl<HO: Copy> Default for Recorder<HO>impl<'a, H: Hasher> Query<H> for &'a mut Recorder<H::Out>[src]
impl<'a, H: Hasher> Query<H> for &'a mut Recorder<H::Out>