Skip to main content

HasHash

Trait HasHash 

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

Anything which has an owned AiHashOf.

Required Methods§

Source

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

Get the hash by reference

Source

fn into_hash(self) -> AiHash<T>

Convert to the owned hash

Implementors§