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