Hasher

Trait Hasher 

Source
pub trait Hasher<T>: Clone + Debug {
    // Required method
    fn hash_two(&self, left: &T, right: &T) -> Result<T, HasherError>;
}

Required Methods§

Source

fn hash_two(&self, left: &T, right: &T) -> Result<T, HasherError>

Hash two elements together.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§