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