Trait hash_db::AsHashDB[][src]

pub trait AsHashDB<H: Hasher, T> {
    fn as_hash_db(&self) -> &dyn HashDB<H, T>;
fn as_hash_db_mut<'a>(&'a mut self) -> &'a mut (dyn HashDB<H, T> + 'a); }

Upcast trait for HashDB.

Required methods

fn as_hash_db(&self) -> &dyn HashDB<H, T>[src]

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

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

Loading content...

Implementors

impl<'a, H: Hasher, T> AsHashDB<H, T> for &'a mut dyn HashDB<H, T>[src]

Loading content...