[][src]Trait hash_db::HashDBRef

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

Trait for immutable reference of HashDB.

Required methods

fn get(&self, key: &H::Out, prefix: Prefix) -> 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::Out, prefix: Prefix) -> bool

Check for the existance of a hash-key.

Loading content...

Implementors

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

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

Loading content...