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