Trait phf_mut::HashInverse

source ·
pub trait HashInverse: PerfectHash {
    // Required method
    fn invert(&self, hash: usize) -> Self::K;

    // Provided method
    fn iter(&self) -> KeyIter<'_, Self>  { ... }
}
Expand description

Inverse operation of the perfect hash function. This is necessary for all operations that generate key values, for example iteration.

Required Methods§

source

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

Provided Methods§

source

fn iter(&self) -> KeyIter<'_, Self>

Create a new iterator over the hash domain.

Object Safety§

This trait is not object safe.

Implementors§