pub struct Lookup<'a, L: TrieLayout, Q: Query<L::Hash>> {
    pub db: &'a dyn HashDBRef<L::Hash, DBValue>,
    pub query: Q,
    pub hash: TrieHash<L>,
}
Expand description

Trie lookup helper object.

Fields

db: &'a dyn HashDBRef<L::Hash, DBValue>

database to query from.

query: Q

Query object to record nodes and transform data.

hash: TrieHash<L>

Hash to start at

Implementations

Look up the given key. If the value is found, it will be passed to the given function to decode or copy.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.