Struct phf_codegen::OrderedMap [] [src]

pub struct OrderedMap<K> { /* fields omitted */ }

A builder for the phf::OrderedMap type.

Methods

impl<K: Hash + PhfHash + Eq + Debug> OrderedMap<K>
[src]

[src]

Constructs a enw phf::OrderedMap builder.

[src]

Set the path to the phf crate from the global namespace

[src]

Adds an entry to the builder.

value will be written exactly as provided in the constructed source.

[src]

Constructs a phf::OrderedMap, outputting Rust source to the provided writer.

Panics

Panics if there are any duplicate keys.

Trait Implementations

Auto Trait Implementations

impl<K> Send for OrderedMap<K> where
    K: Send

impl<K> Sync for OrderedMap<K> where
    K: Sync