pub trait Hashable: AsRef<[u8]> {
// Provided methods
fn hash<H>(&self) -> H::Digest
where H: Hash { ... }
fn hash_with<H>(&self, hash: &mut H)
where H: Hash { ... }
}Expand description
A trait for simple bytes-like objects.
Provided 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.