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