[][src]Trait mohan::merkle::Hashable

pub trait Hashable<H: Hasher> {
    fn hash(&self, state: &mut H);

    fn hash_slice(data: &[Self], state: &mut H)
    where
        Self: Sized
, { ... } }

A hashable type.

Types implementing Hashable are able to be [hash]ed with an instance of Hasher.

Required methods

fn hash(&self, state: &mut H)

Feeds this value into the given Hasher.

Loading content...

Provided methods

fn hash_slice(data: &[Self], state: &mut H) where
    Self: Sized

Feeds a slice of this type into the given Hasher.

Loading content...

Implementors

Loading content...