pub trait AsPlainDB<K, V> {
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
fn as_plain_db(&self) -> &dyn PlainDB<K, V>
fn as_plain_db(&self) -> &dyn PlainDB<K, V>
Perform upcast to PlainDB for anything that derives from PlainDB.
fn as_plain_db_mut<'a>(&'a mut self) -> &'a mut (dyn PlainDB<K, V> + 'a)
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.