Struct ClassesReportedMask
pub struct ClassesReportedMask(/* private fields */);
Implementations§
§impl ClassesReportedMask
impl ClassesReportedMask
pub const OUT_OF_PROXIMITY: ClassesReportedMask = _
pub const DEVICE_MODE_ABSOLUTE: ClassesReportedMask = _
pub const REPORTING_VALUATORS: ClassesReportedMask = _
pub const REPORTING_BUTTONS: ClassesReportedMask = _
pub const REPORTING_KEYS: ClassesReportedMask = _
§impl ClassesReportedMask
impl ClassesReportedMask
pub 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.
pub 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.
pub fn remove(self, flags: impl Into<u8>) -> ClassesReportedMask
pub fn remove(self, flags: impl Into<u8>) -> ClassesReportedMask
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u8> for ClassesReportedMask
impl BitAnd<u8> for ClassesReportedMask
§impl BitAnd for ClassesReportedMask
impl BitAnd for ClassesReportedMask
§type Output = ClassesReportedMask
type Output = ClassesReportedMask
The resulting type after applying the
&
operator.§fn bitand(
self,
other: ClassesReportedMask,
) -> <ClassesReportedMask as BitAnd>::Output
fn bitand( self, other: ClassesReportedMask, ) -> <ClassesReportedMask as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u8> for ClassesReportedMask
impl BitAndAssign<u8> for ClassesReportedMask
§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read more§impl BitAndAssign for ClassesReportedMask
impl BitAndAssign for ClassesReportedMask
§fn bitand_assign(&mut self, other: ClassesReportedMask)
fn bitand_assign(&mut self, other: ClassesReportedMask)
Performs the
&=
operation. Read more§impl BitOr<u8> for ClassesReportedMask
impl BitOr<u8> for ClassesReportedMask
§impl BitOr for ClassesReportedMask
impl BitOr for ClassesReportedMask
§type Output = ClassesReportedMask
type Output = ClassesReportedMask
The resulting type after applying the
|
operator.§fn bitor(
self,
other: ClassesReportedMask,
) -> <ClassesReportedMask as BitOr>::Output
fn bitor( self, other: ClassesReportedMask, ) -> <ClassesReportedMask as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u8> for ClassesReportedMask
impl BitOrAssign<u8> for ClassesReportedMask
§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read more§impl BitOrAssign for ClassesReportedMask
impl BitOrAssign for ClassesReportedMask
§fn bitor_assign(&mut self, other: ClassesReportedMask)
fn bitor_assign(&mut self, other: ClassesReportedMask)
Performs the
|=
operation. Read more§impl Clone for ClassesReportedMask
impl Clone for ClassesReportedMask
§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 more§impl Debug for ClassesReportedMask
impl Debug for ClassesReportedMask
§impl Default for ClassesReportedMask
impl Default for ClassesReportedMask
§fn default() -> ClassesReportedMask
fn default() -> ClassesReportedMask
Returns the “default value” for a type. Read more
§impl From<u8> for ClassesReportedMask
impl From<u8> for ClassesReportedMask
§fn from(value: u8) -> ClassesReportedMask
fn from(value: u8) -> ClassesReportedMask
Converts to this type from the input type.
§impl Hash for ClassesReportedMask
impl Hash for ClassesReportedMask
§impl Ord for ClassesReportedMask
impl Ord for ClassesReportedMask
§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
§impl PartialEq for ClassesReportedMask
impl PartialEq for ClassesReportedMask
§impl PartialOrd for ClassesReportedMask
impl PartialOrd for ClassesReportedMask
impl 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
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
)