pub trait Hash {
const CODE: Code;
// Required method
fn digest(bytes: &[u8]) -> Multihash;
}Expand description
Trait for hash type markers.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.