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]

Constructs a new phf::OrderedSet builder.

Set the path to the phf crate from the global namespace

Adds an entry to the builder.

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

Panics

Panics if there are any duplicate entries.