Struct trie_db::Lookup [−][src]
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
impl<'a, L, Q> Lookup<'a, L, Q> where
L: TrieLayout,
Q: Query<L::Hash>,
[src]
L: TrieLayout,
Q: Query<L::Hash>,
pub fn look_up(
self,
key: NibbleSlice<'_>
) -> Result<Option<Q::Item>, TrieHash<L>, CError<L>>
[src]
self,
key: NibbleSlice<'_>
) -> Result<Option<Q::Item>, TrieHash<L>, CError<L>>
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, 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,
Q: Unpin,
<<L as TrieLayout>::Hash as Hasher>::Out: Unpin,
impl<'a, L, Q> !UnwindSafe for Lookup<'a, L, Q>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,