pub trait HashableContentExtSync<T>: HashableContent
where T: HashTypeSync,
{ // Required methods fn to_hash(&self) -> HoloHash<T>; fn into_hashed(self) -> HoloHashed<Self>; }
Expand description

Adds convenience methods for constructing HoloHash and HoloHashed from some HashableContent

Required Methods§

source

fn to_hash(&self) -> HoloHash<T>

Construct a HoloHash from a reference

source

fn into_hashed(self) -> HoloHashed<Self>

Move into a HoloHashed

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, C> HashableContentExtSync<T> for C
where T: HashTypeSync, C: HashableContent<HashType = T>,