pub trait Hasher: Default + Clone + Hasher + Hasher {
type Digest: Digest;
// Required methods
fn update(&mut self, bytes: &[u8]);
fn finish(self) -> Self::Digest;
// Provided method
fn hash(bytes: &[u8]) -> Self::Digest { ... }
}
Expand description
A cryptographic hash function.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.