Struct x11rb::protocol::xkb::IMGroupsWhich
source · pub struct IMGroupsWhich(u8);
Tuple Fields§
§0: u8
Implementations§
source§impl IMGroupsWhich
impl IMGroupsWhich
pub const USE_COMPAT: IMGroupsWhich = _
pub const USE_EFFECTIVE: IMGroupsWhich = _
pub const USE_LOCKED: IMGroupsWhich = _
pub const USE_LATCHED: IMGroupsWhich = _
pub const USE_BASE: IMGroupsWhich = _
source§impl IMGroupsWhich
impl IMGroupsWhich
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>) -> IMGroupsWhich
pub fn remove(self, flags: impl Into<u8>) -> IMGroupsWhich
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 IMGroupsWhich
impl BitAnd<u8> for IMGroupsWhich
source§impl BitAnd for IMGroupsWhich
impl BitAnd for IMGroupsWhich
§type Output = IMGroupsWhich
type Output = IMGroupsWhich
The resulting type after applying the
&
operator.source§fn bitand(self, other: IMGroupsWhich) -> <IMGroupsWhich as BitAnd>::Output
fn bitand(self, other: IMGroupsWhich) -> <IMGroupsWhich as BitAnd>::Output
Performs the
&
operation. Read moresource§impl BitAndAssign<u8> for IMGroupsWhich
impl BitAndAssign<u8> for IMGroupsWhich
source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign for IMGroupsWhich
impl BitAndAssign for IMGroupsWhich
source§fn bitand_assign(&mut self, other: IMGroupsWhich)
fn bitand_assign(&mut self, other: IMGroupsWhich)
Performs the
&=
operation. Read moresource§impl BitOr<u8> for IMGroupsWhich
impl BitOr<u8> for IMGroupsWhich
source§impl BitOr for IMGroupsWhich
impl BitOr for IMGroupsWhich
§type Output = IMGroupsWhich
type Output = IMGroupsWhich
The resulting type after applying the
|
operator.source§fn bitor(self, other: IMGroupsWhich) -> <IMGroupsWhich as BitOr>::Output
fn bitor(self, other: IMGroupsWhich) -> <IMGroupsWhich as BitOr>::Output
Performs the
|
operation. Read moresource§impl BitOrAssign<u8> for IMGroupsWhich
impl BitOrAssign<u8> for IMGroupsWhich
source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign for IMGroupsWhich
impl BitOrAssign for IMGroupsWhich
source§fn bitor_assign(&mut self, other: IMGroupsWhich)
fn bitor_assign(&mut self, other: IMGroupsWhich)
Performs the
|=
operation. Read moresource§impl Clone for IMGroupsWhich
impl Clone for IMGroupsWhich
source§fn clone(&self) -> IMGroupsWhich
fn clone(&self) -> IMGroupsWhich
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 IMGroupsWhich
impl Debug for IMGroupsWhich
source§impl Default for IMGroupsWhich
impl Default for IMGroupsWhich
source§fn default() -> IMGroupsWhich
fn default() -> IMGroupsWhich
Returns the “default value” for a type. Read more
source§impl From<u8> for IMGroupsWhich
impl From<u8> for IMGroupsWhich
source§fn from(value: u8) -> IMGroupsWhich
fn from(value: u8) -> IMGroupsWhich
Converts to this type from the input type.
source§impl Hash for IMGroupsWhich
impl Hash for IMGroupsWhich
source§impl Ord for IMGroupsWhich
impl Ord for IMGroupsWhich
source§fn cmp(&self, other: &IMGroupsWhich) -> Ordering
fn cmp(&self, other: &IMGroupsWhich) -> 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 IMGroupsWhich
impl PartialEq for IMGroupsWhich
source§fn eq(&self, other: &IMGroupsWhich) -> bool
fn eq(&self, other: &IMGroupsWhich) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for IMGroupsWhich
impl PartialOrd for IMGroupsWhich
source§fn partial_cmp(&self, other: &IMGroupsWhich) -> Option<Ordering>
fn partial_cmp(&self, other: &IMGroupsWhich) -> Option<Ordering>
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 moreimpl Copy for IMGroupsWhich
impl Eq for IMGroupsWhich
impl StructuralPartialEq for IMGroupsWhich
Auto Trait Implementations§
impl Freeze for IMGroupsWhich
impl RefUnwindSafe for IMGroupsWhich
impl Send for IMGroupsWhich
impl Sync for IMGroupsWhich
impl Unpin for IMGroupsWhich
impl UnwindSafe for IMGroupsWhich
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