Struct ValuatorStateModeMask
pub struct ValuatorStateModeMask(/* private fields */);
Implementations§
§impl ValuatorStateModeMask
impl ValuatorStateModeMask
pub const DEVICE_MODE_ABSOLUTE: ValuatorStateModeMask = _
pub const OUT_OF_PROXIMITY: ValuatorStateModeMask = _
§impl ValuatorStateModeMask
impl ValuatorStateModeMask
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>) -> ValuatorStateModeMask
pub fn remove(self, flags: impl Into<u8>) -> ValuatorStateModeMask
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 ValuatorStateModeMask
impl BitAnd<u8> for ValuatorStateModeMask
§impl BitAnd for ValuatorStateModeMask
impl BitAnd for ValuatorStateModeMask
§type Output = ValuatorStateModeMask
type Output = ValuatorStateModeMask
The resulting type after applying the
&
operator.§fn bitand(
self,
other: ValuatorStateModeMask,
) -> <ValuatorStateModeMask as BitAnd>::Output
fn bitand( self, other: ValuatorStateModeMask, ) -> <ValuatorStateModeMask as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u8> for ValuatorStateModeMask
impl BitAndAssign<u8> for ValuatorStateModeMask
§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read more§impl BitAndAssign for ValuatorStateModeMask
impl BitAndAssign for ValuatorStateModeMask
§fn bitand_assign(&mut self, other: ValuatorStateModeMask)
fn bitand_assign(&mut self, other: ValuatorStateModeMask)
Performs the
&=
operation. Read more§impl BitOr<u8> for ValuatorStateModeMask
impl BitOr<u8> for ValuatorStateModeMask
§impl BitOr for ValuatorStateModeMask
impl BitOr for ValuatorStateModeMask
§type Output = ValuatorStateModeMask
type Output = ValuatorStateModeMask
The resulting type after applying the
|
operator.§fn bitor(
self,
other: ValuatorStateModeMask,
) -> <ValuatorStateModeMask as BitOr>::Output
fn bitor( self, other: ValuatorStateModeMask, ) -> <ValuatorStateModeMask as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u8> for ValuatorStateModeMask
impl BitOrAssign<u8> for ValuatorStateModeMask
§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read more§impl BitOrAssign for ValuatorStateModeMask
impl BitOrAssign for ValuatorStateModeMask
§fn bitor_assign(&mut self, other: ValuatorStateModeMask)
fn bitor_assign(&mut self, other: ValuatorStateModeMask)
Performs the
|=
operation. Read more§impl Clone for ValuatorStateModeMask
impl Clone for ValuatorStateModeMask
§fn clone(&self) -> ValuatorStateModeMask
fn clone(&self) -> ValuatorStateModeMask
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 ValuatorStateModeMask
impl Debug for ValuatorStateModeMask
§impl Default for ValuatorStateModeMask
impl Default for ValuatorStateModeMask
§fn default() -> ValuatorStateModeMask
fn default() -> ValuatorStateModeMask
Returns the “default value” for a type. Read more
§impl From<u8> for ValuatorStateModeMask
impl From<u8> for ValuatorStateModeMask
§fn from(value: u8) -> ValuatorStateModeMask
fn from(value: u8) -> ValuatorStateModeMask
Converts to this type from the input type.
§impl Hash for ValuatorStateModeMask
impl Hash for ValuatorStateModeMask
§impl Ord for ValuatorStateModeMask
impl Ord for ValuatorStateModeMask
§fn cmp(&self, other: &ValuatorStateModeMask) -> Ordering
fn cmp(&self, other: &ValuatorStateModeMask) -> 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 ValuatorStateModeMask
impl PartialEq for ValuatorStateModeMask
§impl PartialOrd for ValuatorStateModeMask
impl PartialOrd for ValuatorStateModeMask
impl Copy for ValuatorStateModeMask
impl Eq for ValuatorStateModeMask
impl StructuralPartialEq for ValuatorStateModeMask
Auto Trait Implementations§
impl Freeze for ValuatorStateModeMask
impl RefUnwindSafe for ValuatorStateModeMask
impl Send for ValuatorStateModeMask
impl Sync for ValuatorStateModeMask
impl Unpin for ValuatorStateModeMask
impl UnwindSafe for ValuatorStateModeMask
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
)