[][src]Struct phf_codegen::Set

pub struct Set<T> { /* fields omitted */ }

A builder for the phf::Set type.


impl<T: Hash + PhfHash + Eq + FmtConst> Set<T>[src]

pub fn new() -> Set<T>[src]

Constructs a new phf::Set builder.

pub fn phf_path(&mut self, path: &str) -> &mut Set<T>[src]

Set the path to the phf crate from the global namespace

pub fn entry(&mut self, entry: T) -> &mut Set<T>[src]

Adds an entry to the builder.

pub fn build(&self) -> DisplaySet<T>[src]

Calculate the hash parameters and return a struct implementing Display which will print the constructed phf::Set.


Panics if there are any duplicate keys.

Auto Trait Implementations

impl<T> Send for Set<T> where
    T: Send

impl<T> Sync for Set<T> where
    T: Sync

impl<T> Unpin for Set<T> where
    T: Unpin

impl<T> UnwindSafe for Set<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Set<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,