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§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".