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
sourceimpl<'a, L, Q> Lookup<'a, L, Q> where
L: TrieLayout,
Q: Query<L::Hash>,
impl<'a, L, Q> Lookup<'a, L, Q> where
L: TrieLayout,
Q: Query<L::Hash>,
Auto Trait Implementations
impl<'a, L, Q> !RefUnwindSafe for Lookup<'a, L, Q>
impl<'a, L, Q> !Send for Lookup<'a, L, Q>
impl<'a, L, Q> !Sync for Lookup<'a, L, Q>
impl<'a, L, Q> Unpin for Lookup<'a, L, Q> where
Q: Unpin,
<<L as TrieLayout>::Hash as Hasher>::Out: Unpin,
impl<'a, L, Q> !UnwindSafe for Lookup<'a, L, Q>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more