Trait chksum_core::Hashable
source · 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§
fn hash<H>(&self) -> H::Digestwhere
H: Hash,
fn hash_with<H>(&self, hash: &mut H)where
H: Hash,
Object Safety§
This trait is not object safe.