Struct phf_codegen::Map[][src]

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

A builder for the phf::Map type.

Methods

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

Creates a new phf::Map builder.

Set the path to the phf crate from the global namespace

Adds an entry to the builder.

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

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

Panics

Panics if there are any duplicate keys.

Auto Trait Implementations

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

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