Struct phf_codegen::OrderedSet
source · pub struct OrderedSet<T> { /* private fields */ }
Expand description
A builder for the phf::OrderedSet
type.
Implementations§
source§impl<T: Hash + PhfHash + Eq + Debug> OrderedSet<T>
impl<T: Hash + PhfHash + Eq + Debug> OrderedSet<T>
sourcepub fn new() -> OrderedSet<T>
pub fn new() -> OrderedSet<T>
Constructs a new phf::OrderedSet
builder.
sourcepub fn phf_path(&mut self, path: &str) -> &mut OrderedSet<T>
pub fn phf_path(&mut self, path: &str) -> &mut OrderedSet<T>
Set the path to the phf
crate from the global namespace
sourcepub fn entry(&mut self, entry: T) -> &mut OrderedSet<T>
pub fn entry(&mut self, entry: T) -> &mut OrderedSet<T>
Adds an entry to the builder.