[−][src]Trait trie_db::HashDBRef
Trait for immutable reference of HashDB.
Required methods
fn get(
&self,
key: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> Option<T>
&self,
key: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> Option<T>
Look up a given hash into the bytes that hash to it, returning None if the hash is not known.
fn contains(
&self,
key: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> bool
&self,
key: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> bool
Check for the existance of a hash-key.
Implementors
impl<'a, H, T> HashDBRef<H, T> for &'a (dyn HashDB<H, T> + 'a) where
H: Hasher,
[src]
H: Hasher,
fn get(
&self,
key: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> Option<T>
[src]
&self,
key: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> Option<T>
fn contains(
&self,
key: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> bool
[src]
&self,
key: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> bool
impl<'a, H, T> HashDBRef<H, T> for &'a mut (dyn HashDB<H, T> + 'a) where
H: Hasher,
[src]
H: Hasher,