Trait fvm_ipld_hamt::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,

Object Safety§

This trait is not object safe.

Implementors§