Trait trie_db::HashDBRef[][src]

pub trait HashDBRef<H, T> where
    H: Hasher
{ pub fn get(
        &self,
        key: &<H as Hasher>::Out,
        prefix: (&[u8], Option<u8>)
    ) -> Option<T>;
pub fn contains(
        &self,
        key: &<H as Hasher>::Out,
        prefix: (&[u8], Option<u8>)
    ) -> bool; }

Trait for immutable reference of HashDB.

Required methods

pub fn get(
    &self,
    key: &<H as Hasher>::Out,
    prefix: (&[u8], Option<u8>)
) -> Option<T>
[src]

Look up a given hash into the bytes that hash to it, returning None if the hash is not known.

pub fn contains(
    &self,
    key: &<H as Hasher>::Out,
    prefix: (&[u8], Option<u8>)
) -> bool
[src]

Check for the existance of a hash-key.

Loading content...

Implementors

impl<'a, H, T> HashDBRef<H, T> for &'a (dyn HashDB<H, T> + 'a) where
    H: Hasher
[src]

impl<'a, H, T> HashDBRef<H, T> for &'a mut (dyn HashDB<H, T> + 'a) where
    H: Hasher
[src]

Loading content...