pub struct Seals { /* private fields */ }
Expand description
A set of seals.
Implementations§
source§impl Seals
impl Seals
sourcepub const fn from_bits_truncate(bits: u32) -> Self
pub const fn from_bits_truncate(bits: u32) -> Self
Construct a set of seals from a bitmask.
Unknown bits are trunctated.
pub const fn bits(self) -> u32
sourcepub fn contains(self, other: impl Into<Self>) -> bool
pub fn contains(self, other: impl Into<Self>) -> bool
Check if the set of seals contains all the given seals.
sourcepub fn intersects(self, other: impl Into<Self>) -> bool
pub fn intersects(self, other: impl Into<Self>) -> bool
Check if the set of seals contains at least one of the given seals.
Trait Implementations§
source§impl<T: Into<Seals>> BitAndAssign<T> for Seals
impl<T: Into<Seals>> BitAndAssign<T> for Seals
source§fn bitand_assign(&mut self, right: T)
fn bitand_assign(&mut self, right: T)
Performs the
&=
operation. Read moresource§impl<T: Into<Seals>> BitOrAssign<T> for Seals
impl<T: Into<Seals>> BitOrAssign<T> for Seals
source§fn bitor_assign(&mut self, right: T)
fn bitor_assign(&mut self, right: T)
Performs the
|=
operation. Read moresource§impl<T: Into<Seals>> BitXorAssign<T> for Seals
impl<T: Into<Seals>> BitXorAssign<T> for Seals
source§fn bitxor_assign(&mut self, right: T)
fn bitxor_assign(&mut self, right: T)
Performs the
^=
operation. Read moresource§impl IntoIterator for &Seals
impl IntoIterator for &Seals
source§impl IntoIterator for Seals
impl IntoIterator for Seals
source§impl Ord for Seals
impl Ord for Seals
source§impl PartialEq for Seals
impl PartialEq for Seals
source§impl PartialOrd for Seals
impl PartialOrd for Seals
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T: Into<Seals>> SubAssign<T> for Seals
impl<T: Into<Seals>> SubAssign<T> for Seals
source§fn sub_assign(&mut self, right: T)
fn sub_assign(&mut self, right: T)
Performs the
-=
operation. Read moreimpl Copy for Seals
impl Eq for Seals
impl StructuralEq for Seals
impl StructuralPartialEq for Seals
Auto Trait Implementations§
impl RefUnwindSafe for Seals
impl Send for Seals
impl Sync for Seals
impl Unpin for Seals
impl UnwindSafe for Seals
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