Struct x11rb_protocol::protocol::xinput::ModifierMask
source · pub struct ModifierMask(u32);
Tuple Fields§
§0: u32
Implementations§
source§impl ModifierMask
impl ModifierMask
source§impl ModifierMask
impl ModifierMask
sourcepub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> 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<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> 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<ModifierMask> for u32
impl BitAnd<ModifierMask> for u32
source§type Output = ModifierMask
type Output = ModifierMask
The resulting type after applying the
&
operator.source§impl BitAnd<u32> for ModifierMask
impl BitAnd<u32> for ModifierMask
source§impl BitAnd for ModifierMask
impl BitAnd for ModifierMask
source§impl BitAndAssign<ModifierMask> for u32
impl BitAndAssign<ModifierMask> for u32
source§fn bitand_assign(&mut self, other: ModifierMask)
fn bitand_assign(&mut self, other: ModifierMask)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u32> for ModifierMask
impl BitAndAssign<u32> for ModifierMask
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign for ModifierMask
impl BitAndAssign for ModifierMask
source§fn bitand_assign(&mut self, other: ModifierMask)
fn bitand_assign(&mut self, other: ModifierMask)
Performs the
&=
operation. Read moresource§impl BitOr<ModifierMask> for u32
impl BitOr<ModifierMask> for u32
source§type Output = ModifierMask
type Output = ModifierMask
The resulting type after applying the
|
operator.source§impl BitOr<u32> for ModifierMask
impl BitOr<u32> for ModifierMask
source§impl BitOr for ModifierMask
impl BitOr for ModifierMask
source§impl BitOrAssign<ModifierMask> for u32
impl BitOrAssign<ModifierMask> for u32
source§fn bitor_assign(&mut self, other: ModifierMask)
fn bitor_assign(&mut self, other: ModifierMask)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u32> for ModifierMask
impl BitOrAssign<u32> for ModifierMask
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign for ModifierMask
impl BitOrAssign for ModifierMask
source§fn bitor_assign(&mut self, other: ModifierMask)
fn bitor_assign(&mut self, other: ModifierMask)
Performs the
|=
operation. Read moresource§impl Clone for ModifierMask
impl Clone for ModifierMask
source§fn clone(&self) -> ModifierMask
fn clone(&self) -> ModifierMask
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 ModifierMask
impl Debug for ModifierMask
source§impl Default for ModifierMask
impl Default for ModifierMask
source§fn default() -> ModifierMask
fn default() -> ModifierMask
Returns the “default value” for a type. Read more
source§impl From<ModifierMask> for Option<u32>
impl From<ModifierMask> for Option<u32>
source§fn from(input: ModifierMask) -> Self
fn from(input: ModifierMask) -> Self
Converts to this type from the input type.
source§impl From<ModifierMask> for u32
impl From<ModifierMask> for u32
source§fn from(input: ModifierMask) -> Self
fn from(input: ModifierMask) -> Self
Converts to this type from the input type.
source§impl From<u16> for ModifierMask
impl From<u16> for ModifierMask
source§impl From<u32> for ModifierMask
impl From<u32> for ModifierMask
source§impl From<u8> for ModifierMask
impl From<u8> for ModifierMask
source§impl Hash for ModifierMask
impl Hash for ModifierMask
source§impl Ord for ModifierMask
impl Ord for ModifierMask
source§fn cmp(&self, other: &ModifierMask) -> Ordering
fn cmp(&self, other: &ModifierMask) -> 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 ModifierMask
impl PartialEq for ModifierMask
source§impl PartialOrd for ModifierMask
impl PartialOrd for ModifierMask
impl Copy for ModifierMask
impl Eq for ModifierMask
impl StructuralPartialEq for ModifierMask
Auto Trait Implementations§
impl Freeze for ModifierMask
impl RefUnwindSafe for ModifierMask
impl Send for ModifierMask
impl Sync for ModifierMask
impl Unpin for ModifierMask
impl UnwindSafe for ModifierMask
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
)