Struct SetOfGroup
pub struct SetOfGroup(/* private fields */);
Implementations§
§impl SetOfGroup
impl SetOfGroup
pub const GROUP1: SetOfGroup = _
pub const GROUP2: SetOfGroup = _
pub const GROUP3: SetOfGroup = _
pub const GROUP4: SetOfGroup = _
§impl SetOfGroup
impl SetOfGroup
pub fn contains(self, flag: impl Into<u8>) -> bool
pub fn contains(self, flag: impl Into<u8>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn intersects(self, flag: impl Into<u8>) -> bool
pub fn intersects(self, flag: impl Into<u8>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn remove(self, flags: impl Into<u8>) -> SetOfGroup
pub fn remove(self, flags: impl Into<u8>) -> SetOfGroup
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u8> for SetOfGroup
impl BitAnd<u8> for SetOfGroup
§impl BitAnd for SetOfGroup
impl BitAnd for SetOfGroup
§type Output = SetOfGroup
type Output = SetOfGroup
The resulting type after applying the
&
operator.§fn bitand(self, other: SetOfGroup) -> <SetOfGroup as BitAnd>::Output
fn bitand(self, other: SetOfGroup) -> <SetOfGroup as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u8> for SetOfGroup
impl BitAndAssign<u8> for SetOfGroup
§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read more§impl BitAndAssign for SetOfGroup
impl BitAndAssign for SetOfGroup
§fn bitand_assign(&mut self, other: SetOfGroup)
fn bitand_assign(&mut self, other: SetOfGroup)
Performs the
&=
operation. Read more§impl BitOr<u8> for SetOfGroup
impl BitOr<u8> for SetOfGroup
§impl BitOr for SetOfGroup
impl BitOr for SetOfGroup
§type Output = SetOfGroup
type Output = SetOfGroup
The resulting type after applying the
|
operator.§fn bitor(self, other: SetOfGroup) -> <SetOfGroup as BitOr>::Output
fn bitor(self, other: SetOfGroup) -> <SetOfGroup as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u8> for SetOfGroup
impl BitOrAssign<u8> for SetOfGroup
§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read more§impl BitOrAssign for SetOfGroup
impl BitOrAssign for SetOfGroup
§fn bitor_assign(&mut self, other: SetOfGroup)
fn bitor_assign(&mut self, other: SetOfGroup)
Performs the
|=
operation. Read more§impl Clone for SetOfGroup
impl Clone for SetOfGroup
§fn clone(&self) -> SetOfGroup
fn clone(&self) -> SetOfGroup
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for SetOfGroup
impl Debug for SetOfGroup
§impl Default for SetOfGroup
impl Default for SetOfGroup
§fn default() -> SetOfGroup
fn default() -> SetOfGroup
Returns the “default value” for a type. Read more
§impl From<u8> for SetOfGroup
impl From<u8> for SetOfGroup
§fn from(value: u8) -> SetOfGroup
fn from(value: u8) -> SetOfGroup
Converts to this type from the input type.
§impl Hash for SetOfGroup
impl Hash for SetOfGroup
§impl Ord for SetOfGroup
impl Ord for SetOfGroup
§impl PartialEq for SetOfGroup
impl PartialEq for SetOfGroup
§impl PartialOrd for SetOfGroup
impl PartialOrd for SetOfGroup
impl Copy for SetOfGroup
impl Eq for SetOfGroup
impl StructuralPartialEq for SetOfGroup
Auto Trait Implementations§
impl Freeze for SetOfGroup
impl RefUnwindSafe for SetOfGroup
impl Send for SetOfGroup
impl Sync for SetOfGroup
impl Unpin for SetOfGroup
impl UnwindSafe for SetOfGroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)