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.

Required Associated Types§

Required Methods§

source

fn hash(&self, input: &[u8]) -> Vec<u8>

Provided Methods§

source

fn new_hasher(&self) -> Self::Hasher

Implementors§