pub struct Set<T: 'static> { /* private fields */ }
Expand description
An immutable set constructed at compile time.
§Note
The fields of this struct are public so that they may be initialized by the
phf_set!
macro and code generation. They are subject to change at any
time and should never be accessed directly.
Implementations§
Source§impl<T> Set<T>
impl<T> Set<T>
Source§impl<T> Set<T>
impl<T> Set<T>
Sourcepub fn is_disjoint(&self, other: &Set<T>) -> bool
pub fn is_disjoint(&self, other: &Set<T>) -> bool
Returns true if other
shares no elements with self
.
Sourcepub fn is_subset(&self, other: &Set<T>) -> bool
pub fn is_subset(&self, other: &Set<T>) -> bool
Returns true if other
contains all values in self
.
Sourcepub fn is_superset(&self, other: &Set<T>) -> bool
pub fn is_superset(&self, other: &Set<T>) -> bool
Returns true if self
contains all values in other
.
Trait Implementations§
Source§impl<'a, T> IntoIterator for &'a Set<T>
impl<'a, T> IntoIterator for &'a Set<T>
impl<T> Eq for Set<T>where
T: Eq,
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes