Struct phf_codegen::OrderedMap
source · pub struct OrderedMap<K> { /* private fields */ }
Expand description
A builder for the phf::OrderedMap
type.
Implementations§
source§impl<K: Hash + PhfHash + Eq + Debug> OrderedMap<K>
impl<K: Hash + PhfHash + Eq + Debug> OrderedMap<K>
sourcepub fn new() -> OrderedMap<K>
pub fn new() -> OrderedMap<K>
Constructs a enw phf::OrderedMap
builder.
sourcepub fn phf_path(&mut self, path: &str) -> &mut OrderedMap<K>
pub fn phf_path(&mut self, path: &str) -> &mut OrderedMap<K>
Set the path to the phf
crate from the global namespace
sourcepub fn entry(&mut self, key: K, value: &str) -> &mut OrderedMap<K>
pub fn entry(&mut self, key: K, value: &str) -> &mut OrderedMap<K>
Adds an entry to the builder.
value
will be written exactly as provided in the constructed source.