pub struct Set<T: 'static>(/* private fields */);
Expand description
An immutable set with lookup via a perfect hash function.
Constructable at compile time with a BuildSet
. Unlike an OrderedSet
, no iteration order is specified.
Internally, this is a wrapper for phf::Set
from the excellent
phf crate.
This API requires the following crate feature to be activated: set
Implementations§
Auto Trait Implementations§
impl<T> Freeze for Set<T>
impl<T> RefUnwindSafe for Set<T>where
T: RefUnwindSafe,
impl<T> Send for Set<T>where
T: Sync,
impl<T> Sync for Set<T>where
T: Sync,
impl<T> Unpin for Set<T>
impl<T> UnwindSafe for Set<T>where
T: RefUnwindSafe,
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