Struct phf_codegen::OrderedSet
source · pub struct OrderedSet<T> { /* private fields */ }
Expand description
A builder for the phf::OrderedSet
type.
Implementations§
source§impl<T: Hash + PhfHash + Eq + FmtConst> OrderedSet<T>
impl<T: Hash + PhfHash + Eq + FmtConst> OrderedSet<T>
sourcepub fn new() -> OrderedSet<T>
pub fn new() -> OrderedSet<T>
Constructs a new phf::OrderedSet
builder.
sourcepub fn phf_path(&mut self, path: &str) -> &mut OrderedSet<T>
pub fn phf_path(&mut self, path: &str) -> &mut OrderedSet<T>
Set the path to the phf
crate from the global namespace
sourcepub fn entry(&mut self, entry: T) -> &mut OrderedSet<T>
pub fn entry(&mut self, entry: T) -> &mut OrderedSet<T>
Adds an entry to the builder.
sourcepub fn build(&self) -> DisplayOrderedSet<'_, T>
pub fn build(&self) -> DisplayOrderedSet<'_, T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for OrderedSet<T>where T: RefUnwindSafe,
impl<T> Send for OrderedSet<T>where T: Send,
impl<T> Sync for OrderedSet<T>where T: Sync,
impl<T> Unpin for OrderedSet<T>where T: Unpin,
impl<T> UnwindSafe for OrderedSet<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more