Skip to main content

verify_partial_phf

Function verify_partial_phf 

Source
pub fn verify_partial_phf<K: Display, G: Fn(&K) -> Option<usize>>(
    expected_range: usize,
    keys: impl IntoIterator<Item = K>,
    phf: G,
)
Expand description

Checks if phf is valid partial (None results are ignored) perfect hash function. Panics if it is not.