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: QQuery object to record nodes and transform data.
hash: TrieHash<L>Hash to start at
Implementations§
Auto Trait Implementations§
impl<'a, L, Q> Freeze for Lookup<'a, L, Q>
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>
impl<'a, L, Q> !UnwindSafe for Lookup<'a, L, Q>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more