Function phf_shared::get_index

source ·
pub fn get_index(hash: u64, disps: &[(u32, u32)], len: usize) -> u32
Expand description

Return an index into phf_generator::HashState::map.

  • hash is from hash() in this crate.
  • disps is from phf_generator::HashState::disps.
  • len is the length of phf_generator::HashState::map.