[−][src]Struct trie_db::recorder::Recorder
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>>ⓘ
[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]
Auto Trait Implementations
impl<HO> RefUnwindSafe for Recorder<HO> where
HO: RefUnwindSafe,
HO: RefUnwindSafe,
impl<HO> Send for Recorder<HO> where
HO: Send,
HO: Send,
impl<HO> Sync for Recorder<HO> where
HO: Sync,
HO: Sync,
impl<HO> Unpin for Recorder<HO> where
HO: Unpin,
HO: Unpin,
impl<HO> UnwindSafe for Recorder<HO> where
HO: UnwindSafe,
HO: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,