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