Struct x11rb_protocol::protocol::xkb::IMModsWhich
source · pub struct IMModsWhich(/* private fields */);
Implementations§
source§impl IMModsWhich
impl IMModsWhich
pub const USE_COMPAT: Self = _
pub const USE_EFFECTIVE: Self = _
pub const USE_LOCKED: Self = _
pub const USE_LATCHED: Self = _
pub const USE_BASE: Self = _
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.
Trait Implementations§
source§impl BitAnd<IMModsWhich> for u8
impl BitAnd<IMModsWhich> for u8
§type Output = IMModsWhich
type Output = IMModsWhich
The resulting type after applying the
&
operator.source§impl BitAnd<u8> for IMModsWhich
impl BitAnd<u8> for IMModsWhich
source§impl BitAnd for IMModsWhich
impl BitAnd for IMModsWhich
source§impl BitAndAssign<IMModsWhich> for u8
impl BitAndAssign<IMModsWhich> for u8
source§fn bitand_assign(&mut self, other: IMModsWhich)
fn bitand_assign(&mut self, other: IMModsWhich)
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<IMModsWhich> for u8
impl BitOr<IMModsWhich> for u8
§type Output = IMModsWhich
type Output = IMModsWhich
The resulting type after applying the
|
operator.source§impl BitOr<u8> for IMModsWhich
impl BitOr<u8> for IMModsWhich
source§impl BitOr for IMModsWhich
impl BitOr for IMModsWhich
source§impl BitOrAssign<IMModsWhich> for u8
impl BitOrAssign<IMModsWhich> for u8
source§fn bitor_assign(&mut self, other: IMModsWhich)
fn bitor_assign(&mut self, other: IMModsWhich)
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<IMModsWhich> for Option<u16>
impl From<IMModsWhich> for Option<u16>
source§fn from(input: IMModsWhich) -> Self
fn from(input: IMModsWhich) -> Self
Converts to this type from the input type.
source§impl From<IMModsWhich> for Option<u32>
impl From<IMModsWhich> for Option<u32>
source§fn from(input: IMModsWhich) -> Self
fn from(input: IMModsWhich) -> Self
Converts to this type from the input type.
source§impl From<IMModsWhich> for Option<u8>
impl From<IMModsWhich> for Option<u8>
source§fn from(input: IMModsWhich) -> Self
fn from(input: IMModsWhich) -> Self
Converts to this type from the input type.
source§impl From<IMModsWhich> for u16
impl From<IMModsWhich> for u16
source§fn from(input: IMModsWhich) -> Self
fn from(input: IMModsWhich) -> Self
Converts to this type from the input type.
source§impl From<IMModsWhich> for u32
impl From<IMModsWhich> for u32
source§fn from(input: IMModsWhich) -> Self
fn from(input: IMModsWhich) -> Self
Converts to this type from the input type.
source§impl From<IMModsWhich> for u8
impl From<IMModsWhich> for u8
source§fn from(input: IMModsWhich) -> Self
fn from(input: IMModsWhich) -> Self
Converts to this type from the input type.
source§impl From<u8> for IMModsWhich
impl From<u8> for IMModsWhich
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