Trait phf_mut::PerfectHash

source ·
pub trait PerfectHash {
    type K;

    // Required methods
    fn hash(&self, k: Self::K) -> usize;
    fn size(&self) -> usize;
}
Expand description

The perfect hash function to be used in all further constructions.

Required Associated Types§

source

type K

Required Methods§

source

fn hash(&self, k: Self::K) -> usize

source

fn size(&self) -> usize

Implementors§