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

Perform upcast to PlainDB for anything that derives from PlainDB.

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

Implementors

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