[][src]Struct trie_db::recorder::Recorder

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

Records trie nodes as they pass it.

Implementations

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

pub fn new() -> Self[src]

Create a new Recorder which records all given nodes.

pub fn with_depth(depth: u32) -> Self[src]

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

pub fn record(&mut self, hash: &HO, data: &[u8], depth: u32)[src]

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

pub fn drain(&mut self) -> Vec<Record<HO>>

Notable traits for Vec<u8>

impl Write for Vec<u8>
[src]

Drain all visited records.

Trait Implementations

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

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

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

type Item = DBValue

Output item.

Auto Trait Implementations

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

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

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

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

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

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<T> MaybeDebug for T where
    T: Debug
[src]

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.