Function quickphf_codegen::build_set
source · pub fn build_set<K: Eq + Hash + ConstInstantiable>(
keys: &[K]
) -> CodeWriter<'_, K>
Expand description
Generate code for a static quickphf::PhfSet
.
Examples
use quickphf_codegen::*;
let digits_set = build_set(&[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);