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