Trait hash_db::PlainDBRef [−][src]
pub trait PlainDBRef<K, V> {
fn get(&self, key: &K) -> Option<V>;
fn contains(&self, key: &K) -> bool;
}Trait for immutable reference of PlainDB.
Required methods
fn get(&self, key: &K) -> Option<V>[src]
Look up a given hash into the bytes that hash to it, returning None if the hash is not known.
fn contains(&self, key: &K) -> bool[src]
Check for the existance of a hash-key.
Implementors
impl<'a, K, V> PlainDBRef<K, V> for &'a dyn PlainDB<K, V>[src]
impl<'a, K, V> PlainDBRef<K, V> for &'a dyn PlainDB<K, V>[src]