pub trait OnceHasher {
type Hasher: Hasher;
// Required method
fn hash(&self, input: &[u8]) -> Vec<u8> ⓘ;
// Provided method
fn new_hasher(&self) -> Self::Hasher { ... }
}Expand description
The hash function trait with one-shot hash call.