pub trait HashableContentExtAsync<'a, T>: HashableContentwhere
T: HashTypeAsync,{
// Required methods
fn to_hash(&self) -> MustBoxFuture<'_, HoloHash<T>>;
fn into_hashed(self) -> MustBoxFuture<'a, HoloHashed<Self>>;
}
Expand description
Adds convenience methods for constructing HoloHash and HoloHashed from some HashableContent
Required Methods§
sourcefn to_hash(&self) -> MustBoxFuture<'_, HoloHash<T>>
fn to_hash(&self) -> MustBoxFuture<'_, HoloHash<T>>
Construct a HoloHash from a reference
sourcefn into_hashed(self) -> MustBoxFuture<'a, HoloHashed<Self>>
fn into_hashed(self) -> MustBoxFuture<'a, HoloHashed<Self>>
Move into a HoloHashed
Object Safety§
This trait is not object safe.