Trait HasHash

Source
pub trait HasHash<T>
where T: HashType,
{ // Required methods fn as_hash(&self) -> &HoloHash<T>; fn into_hash(self) -> HoloHash<T>; }
Expand description

Anything which has an owned HoloHashOf.

Required Methods§

Source

fn as_hash(&self) -> &HoloHash<T>

Get the hash by reference

Source

fn into_hash(self) -> HoloHash<T>

Convert to the owned hash

Implementors§

Source§

impl<C> HasHash<<C as HashableContent>::HashType> for HoloHashed<C>
where C: HashableContent,

Source§

impl<T> HasHash<T> for HoloHash<T>
where T: HashType,