[][src]Trait grin_core::core::hash::Hashed

pub trait Hashed {
    fn hash(&self) -> Hash;
fn hash_with<T: Writeable>(&self, other: T) -> Hash; }

A trait for types that have a canonical hash

Required methods

fn hash(&self) -> Hash

Obtain the hash of the object

fn hash_with<T: Writeable>(&self, other: T) -> Hash

Hash the object together with another writeable object

Loading content...

Implementors

impl<W: Writeable> Hashed for W[src]

Loading content...