Struct x11rb::protocol::xkb::GroupsWrap
source · pub struct GroupsWrap(u8);
Tuple Fields§
§0: u8
Implementations§
source§impl GroupsWrap
impl GroupsWrap
pub const WRAP_INTO_RANGE: GroupsWrap = _
pub const CLAMP_INTO_RANGE: GroupsWrap = _
pub const REDIRECT_INTO_RANGE: GroupsWrap = _
source§impl GroupsWrap
impl GroupsWrap
sourcepub 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.
sourcepub 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.
sourcepub 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§
source§impl BitAnd<u8> for GroupsWrap
impl BitAnd<u8> for GroupsWrap
source§impl BitAnd for GroupsWrap
impl BitAnd for GroupsWrap
source§type Output = GroupsWrap
type Output = GroupsWrap
The resulting type after applying the
&
operator.source§fn bitand(self, other: GroupsWrap) -> <GroupsWrap as BitAnd>::Output
fn bitand(self, other: GroupsWrap) -> <GroupsWrap as BitAnd>::Output
Performs the
&
operation. Read moresource§impl BitAndAssign<u8> for GroupsWrap
impl BitAndAssign<u8> for GroupsWrap
source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign for GroupsWrap
impl BitAndAssign for GroupsWrap
source§fn bitand_assign(&mut self, other: GroupsWrap)
fn bitand_assign(&mut self, other: GroupsWrap)
Performs the
&=
operation. Read moresource§impl BitOr<u8> for GroupsWrap
impl BitOr<u8> for GroupsWrap
source§impl BitOr for GroupsWrap
impl BitOr for GroupsWrap
source§type Output = GroupsWrap
type Output = GroupsWrap
The resulting type after applying the
|
operator.source§fn bitor(self, other: GroupsWrap) -> <GroupsWrap as BitOr>::Output
fn bitor(self, other: GroupsWrap) -> <GroupsWrap as BitOr>::Output
Performs the
|
operation. Read moresource§impl BitOrAssign<u8> for GroupsWrap
impl BitOrAssign<u8> for GroupsWrap
source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign for GroupsWrap
impl BitOrAssign for GroupsWrap
source§fn bitor_assign(&mut self, other: GroupsWrap)
fn bitor_assign(&mut self, other: GroupsWrap)
Performs the
|=
operation. Read moresource§impl Clone for GroupsWrap
impl Clone for GroupsWrap
source§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 moresource§impl Debug for GroupsWrap
impl Debug for GroupsWrap
source§impl Default for GroupsWrap
impl Default for GroupsWrap
source§fn default() -> GroupsWrap
fn default() -> GroupsWrap
Returns the “default value” for a type. Read more
source§impl From<u8> for GroupsWrap
impl From<u8> for GroupsWrap
source§fn from(value: u8) -> GroupsWrap
fn from(value: u8) -> GroupsWrap
Converts to this type from the input type.
source§impl Hash for GroupsWrap
impl Hash for GroupsWrap
source§impl Ord for GroupsWrap
impl Ord for GroupsWrap
source§fn cmp(&self, other: &GroupsWrap) -> Ordering
fn cmp(&self, other: &GroupsWrap) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GroupsWrap
impl PartialEq for GroupsWrap
source§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
)