pub struct Recorder<L: TrieLayout> { /* private fields */ }
Expand description
Records trie nodes as they pass it.
Implementations§
Trait Implementations§
source§impl<L: TrieLayout> Default for Recorder<L>
impl<L: TrieLayout> Default for Recorder<L>
source§impl<L: TrieLayout> TrieRecorder<<<L as TrieLayout>::Hash as Hasher>::Out> for Recorder<L>
impl<L: TrieLayout> TrieRecorder<<<L as TrieLayout>::Hash as Hasher>::Out> for Recorder<L>
source§fn record<'a>(&mut self, access: TrieAccess<'a, TrieHash<L>>)
fn record<'a>(&mut self, access: TrieAccess<'a, TrieHash<L>>)
Record the given
TrieAccess
. Read moresource§fn trie_nodes_recorded_for_key(&self, key: &[u8]) -> RecordedForKey
fn trie_nodes_recorded_for_key(&self, key: &[u8]) -> RecordedForKey
Check if we have recorded any trie nodes for the given
key
. Read more