Struct phf_codegen::OrderedSet [] [src]

pub struct OrderedSet<T> {
    // some fields omitted
}

A builder for the phf::OrderedSet type.

Methods

impl<T: Hash + PhfHash + Eq + Debug> OrderedSet<T>
[src]

fn new() -> OrderedSet<T>

Constructs a new phf::OrderedSet builder.

fn entry(&mut self, entry: T) -> &mut OrderedSet<T>

Adds an entry to the builder.

fn build<W: Write>(&self, w: &mut W) -> Result<()>

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

Panics

Panics if there are any duplicate entries.