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