[−][src]Trait hash_db::AsHashDB
Upcast trait for HashDB.
Required methods
fn as_hash_db(&self) -> &dyn HashDB<H, T>[−]
Perform upcast to HashDB for anything that derives from HashDB.
fn as_hash_db_mut<'a>(&'a mut self) -> &'a mut (dyn HashDB<H, T> + 'a)[−]
Perform mutable upcast to HashDB for anything that derives from HashDB.
Implementors
impl<'a, H: Hasher, T> AsHashDB<H, T> for &'a mut dyn HashDB<H, T>[src][+]
impl<H, KF, T> AsHashDB<H, 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>,
impl<H, KF, T> AsHashDB<H, 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>, impl<'a, DB, H, T> AsHashDB<H, T> for KeySpacedDBMut<'a, DB, H> where
DB: HashDB<H, T>,
H: Hasher,
T: Default + PartialEq<T> + for<'b> From<&'b [u8]> + Clone + Send + Sync,
impl<'a, DB, H, T> AsHashDB<H, T> for KeySpacedDBMut<'a, DB, H> where
DB: HashDB<H, T>,
H: Hasher,
T: Default + PartialEq<T> + for<'b> From<&'b [u8]> + Clone + Send + Sync,