pub trait Hash {
    type Input: Inject + Eject + Clone;
    type Output: Inject + Eject + ToBits + Clone;
    // Required method
    fn hash(&self, input: &[Self::Input]) -> Self::Output;
}Expand description
A trait for a hash function.
pub trait Hash {
    type Input: Inject + Eject + Clone;
    type Output: Inject + Eject + ToBits + Clone;
    // Required method
    fn hash(&self, input: &[Self::Input]) -> Self::Output;
}A trait for a hash function.