Struct phf_codegen::Set
[−]
[src]
pub struct Set<T> { /* fields omitted */ }A builder for the phf::Set type.
Methods
impl<T: Hash + PhfHash + Eq + Debug> Set<T>[src]
pub fn new() -> Set<T>[src]
Constructs a new phf::Set builder.
pub fn phf_path(&mut self, path: &str) -> &mut Set<T>[src]
Set the path to the phf crate from the global namespace
pub fn entry(&mut self, entry: T) -> &mut Set<T>[src]
Adds an entry to the builder.
pub fn build<W: Write>(&self, w: &mut W) -> Result<()>[src]
Constructs a phf::Set, outputting Rust source to the provided writer.
Panics
Panics if there are any duplicate entries.