Trait hash_db::AsPlainDB

source ·
pub trait AsPlainDB<K, V> {
    // Required methods
    fn as_plain_db(&self) -> &dyn PlainDB<K, V>;
    fn as_plain_db_mut<'a>(&'a mut self) -> &'a mut (dyn PlainDB<K, V> + 'a);
}
Expand description

Upcast trait for PlainDB.

Required Methods§

source

fn as_plain_db(&self) -> &dyn PlainDB<K, V>

Perform upcast to PlainDB for anything that derives from PlainDB.

source

fn as_plain_db_mut<'a>(&'a mut self) -> &'a mut (dyn PlainDB<K, V> + 'a)

Perform mutable upcast to PlainDB for anything that derives from PlainDB.

Implementors§

source§

impl<'a, K, V> AsPlainDB<K, V> for &'a mut dyn PlainDB<K, V>