Trait hdk::prelude::HasHash[][src]

pub trait HasHash<T> where
    T: HashType
{ pub fn as_hash(&self) -> &HoloHash<T>;
pub fn into_hash(self) -> HoloHash<T>; }

Anything which has an owned HoloHashOf.

Required methods

pub fn as_hash(&self) -> &HoloHash<T>[src]

Get the hash by reference

pub fn into_hash(self) -> HoloHash<T>[src]

Convert to the owned hash

Loading content...

Implementations on Foreign Types

impl<C> HasHash<<C as HashableContent>::HashType> for HoloHashed<C> where
    C: HashableContent
[src]

Loading content...

Implementors

impl<T> HasHash<T> for HoloHash<T> where
    T: HashType
[src]

Loading content...