pub struct Lookup<'a, H: Hasher + 'a, C: NodeCodec<H>, Q: Query<H>> {
pub db: &'a dyn HashDBRef<H, DBValue>,
pub query: Q,
pub hash: H::Out,
pub marker: PhantomData<C>,
}
Expand description
Trie lookup helper object.
Fields
db: &'a dyn HashDBRef<H, DBValue>
database to query from.
query: Q
Query object to record nodes and transform data.
hash: H::Out
Hash to start at
marker: PhantomData<C>
Implementations
Auto Trait Implementations
impl<'a, H, C, Q> !RefUnwindSafe for Lookup<'a, H, C, Q>
impl<'a, H, C, Q> !Send for Lookup<'a, H, C, Q>
impl<'a, H, C, Q> !Sync for Lookup<'a, H, C, Q>
impl<'a, H, C, Q> Unpin for Lookup<'a, H, C, Q> where
C: Unpin,
Q: Unpin,
<H as Hasher>::Out: Unpin,
impl<'a, H, C, Q> !UnwindSafe for Lookup<'a, H, C, 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