Trait holo_hash::HasHash

source ·
pub trait HasHash<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§