pub trait Hash {
    type Input;
    type Output;

    // Required method
    fn hash(&self, input: &[Self::Input]) -> Result<Self::Output>;
}
Expand description

A trait for a hash function.

Required Associated Types§

Required Methods§

source

fn hash(&self, input: &[Self::Input]) -> Result<Self::Output>

Returns the hash of the given input.

Implementors§