pub type Lookup<'a, 'cache, L, Q> = Lookup<'a, 'cache, L, Q>;
Expand description
Querying interface, as in trie_db
but less generic.
Aliased Type§
struct Lookup<'a, 'cache, L, Q> {
pub db: &'a dyn HashDBRef<<L as TrieLayout>::Hash, Vec<u8>>,
pub query: Q,
pub hash: <<L as TrieLayout>::Hash as Hasher>::Out,
pub cache: Option<&'cache mut dyn TrieCache<<L as TrieLayout>::Codec>>,
pub recorder: Option<&'cache mut dyn TrieRecorder<<<L as TrieLayout>::Hash as Hasher>::Out>>,
}
Fields§
§db: &'a dyn HashDBRef<<L as TrieLayout>::Hash, Vec<u8>>
database to query from.
query: Q
Query object to record nodes and transform data.
hash: <<L as TrieLayout>::Hash as Hasher>::Out
Hash to start at
cache: Option<&'cache mut dyn TrieCache<<L as TrieLayout>::Codec>>
Optional cache that should be used to speed up the lookup.
recorder: Option<&'cache mut dyn TrieRecorder<<<L as TrieLayout>::Hash as Hasher>::Out>>
Optional recorder that will be called to record all trie accesses.