HashAlgorithm

Trait HashAlgorithm 

Source
pub trait HashAlgorithm {
    // Required method
    fn hash<X>(key: &X) -> [u8; 32]
       where X: Hash + ?Sized;
}
Expand description

Algorithm used as the hasher for the Hamt.

Required Methods§

Source

fn hash<X>(key: &X) -> [u8; 32]
where X: Hash + ?Sized,

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§