phf_codegen
pub struct Set<T> { // some fields omitted }
A builder for the phf::Set type.
phf::Set
impl<T: Hash + PhfHash + Eq + Debug> Set<T>
fn new() -> Set<T>
Constructs a new phf::Set builder.
fn entry(&mut self, entry: T) -> &mut Set<T>
Adds an entry to the builder.
fn build<W: Write>(&self, w: &mut W) -> Result<()>
Constructs a phf::Set, outputting Rust source to the provided writer.
Panics if there are any duplicate entries.