Struct patricia_trie::Lookup[][src]

pub struct Lookup<'a, H: Hasher + 'a, C: NodeCodec<H>, Q: Query<H>> {
    pub db: &'a HashDB<H, DBValue>,
    pub query: Q,
    pub hash: H::Out,
    pub marker: PhantomData<C>,
}

Trie lookup helper object.

Fields

database to query from.

Query object to record nodes and transform data.

Hash to start at

Methods

impl<'a, H, C, Q> Lookup<'a, H, C, Q> where
    H: Hasher + 'a,
    C: NodeCodec<H> + 'a,
    Q: Query<H>, 
[src]

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

impl<'a, H, C, Q> Send for Lookup<'a, H, C, Q> where
    C: Send,
    Q: Send,
    <H as Hasher>::Out: Send

impl<'a, H, C, Q> Sync for Lookup<'a, H, C, Q> where
    C: Sync,
    Q: Sync,
    <H as Hasher>::Out: Sync