Trait holochain::core::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,