OnceHasher

Trait OnceHasher 

Source
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§