[][src]Trait hash_db::AsPlainDB

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); }
[]

Upcast trait for PlainDB.

Required methods

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)[]

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

Implementors

impl<'a, K, V> AsPlainDB<K, V> for &'a mut dyn PlainDB<K, V>[src][+]

impl<H, KF, T> AsPlainDB<<H as Hasher>::Out, T> for MemoryDB<H, KF, T> where
    H: KeyHasher,
    T: Default + PartialEq<T> + for<'a> From<&'a [u8]> + Clone + Send + Sync,
    KF: Send + Sync + KeyFunction<H>,
    KF::Key: Borrow<[u8]> + for<'a> From<&'a [u8]>,