Trait HasHash

Source
pub trait HasHash {
    type HashType: HashType;

    // Required methods
    fn as_hash(&self) -> &HoloHash<Self::HashType>;
    fn into_hash(self) -> HoloHash<Self::HashType>;
}
Expand description

Anything which has an owned HoloHashOf.

Required Associated Types§

Source

type HashType: HashType

The type of the hash which is had.

Required Methods§

Source

fn as_hash(&self) -> &HoloHash<Self::HashType>

Get the hash by reference

Source

fn into_hash(self) -> HoloHash<Self::HashType>

Convert to the owned hash

Implementors§