[−][src]Struct trie_db::recorder::Recorder
Records trie nodes as they pass it.
Methods
impl<HO: Copy> Recorder<HO>[src]
impl<HO: Copy> Recorder<HO>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>> | [src] |
Drain all visited records.
Trait Implementations
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>type Item = DBValue
Output item.
fn decode(self, value: &[u8]) -> DBValue | [src] |
fn record(&mut self, hash: &H::Out, data: &[u8], depth: u32) | [src] |
impl<HO: Copy> Default for Recorder<HO>[src]
impl<HO: Copy> Default for Recorder<HO>impl<HO: Debug> Debug for Recorder<HO>[src]
impl<HO: Debug> Debug for Recorder<HO>Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |
impl<T> DebugIfStd for T where
T: Debug, [src]
impl<T> DebugIfStd for T where
T: Debug,