Struct SetOfGroups
pub struct SetOfGroups(/* private fields */);
Implementations§
§impl SetOfGroups
impl SetOfGroups
pub const ANY: SetOfGroups = _
§impl SetOfGroups
impl SetOfGroups
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>) -> SetOfGroups
pub fn remove(self, flags: impl Into<u8>) -> SetOfGroups
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 SetOfGroups
impl BitAnd<u8> for SetOfGroups
§impl BitAnd for SetOfGroups
impl BitAnd for SetOfGroups
§type Output = SetOfGroups
type Output = SetOfGroups
The resulting type after applying the
&
operator.§fn bitand(self, other: SetOfGroups) -> <SetOfGroups as BitAnd>::Output
fn bitand(self, other: SetOfGroups) -> <SetOfGroups as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u8> for SetOfGroups
impl BitAndAssign<u8> for SetOfGroups
§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read more§impl BitAndAssign for SetOfGroups
impl BitAndAssign for SetOfGroups
§fn bitand_assign(&mut self, other: SetOfGroups)
fn bitand_assign(&mut self, other: SetOfGroups)
Performs the
&=
operation. Read more§impl BitOr<u8> for SetOfGroups
impl BitOr<u8> for SetOfGroups
§impl BitOr for SetOfGroups
impl BitOr for SetOfGroups
§type Output = SetOfGroups
type Output = SetOfGroups
The resulting type after applying the
|
operator.§fn bitor(self, other: SetOfGroups) -> <SetOfGroups as BitOr>::Output
fn bitor(self, other: SetOfGroups) -> <SetOfGroups as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u8> for SetOfGroups
impl BitOrAssign<u8> for SetOfGroups
§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read more§impl BitOrAssign for SetOfGroups
impl BitOrAssign for SetOfGroups
§fn bitor_assign(&mut self, other: SetOfGroups)
fn bitor_assign(&mut self, other: SetOfGroups)
Performs the
|=
operation. Read more§impl Clone for SetOfGroups
impl Clone for SetOfGroups
§fn clone(&self) -> SetOfGroups
fn clone(&self) -> SetOfGroups
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 SetOfGroups
impl Debug for SetOfGroups
§impl Default for SetOfGroups
impl Default for SetOfGroups
§fn default() -> SetOfGroups
fn default() -> SetOfGroups
Returns the “default value” for a type. Read more
§impl From<u8> for SetOfGroups
impl From<u8> for SetOfGroups
§fn from(value: u8) -> SetOfGroups
fn from(value: u8) -> SetOfGroups
Converts to this type from the input type.
§impl Hash for SetOfGroups
impl Hash for SetOfGroups
§impl Ord for SetOfGroups
impl Ord for SetOfGroups
§impl PartialEq for SetOfGroups
impl PartialEq for SetOfGroups
§impl PartialOrd for SetOfGroups
impl PartialOrd for SetOfGroups
impl Copy for SetOfGroups
impl Eq for SetOfGroups
impl StructuralPartialEq for SetOfGroups
Auto Trait Implementations§
impl Freeze for SetOfGroups
impl RefUnwindSafe for SetOfGroups
impl Send for SetOfGroups
impl Sync for SetOfGroups
impl Unpin for SetOfGroups
impl UnwindSafe for SetOfGroups
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
)