Struct x11rb_protocol::protocol::xinput::ValuatorStateModeMask
source · pub struct ValuatorStateModeMask(/* private fields */);
Implementations§
source§impl ValuatorStateModeMask
impl ValuatorStateModeMask
pub const DEVICE_MODE_ABSOLUTE: Self = _
pub const OUT_OF_PROXIMITY: Self = _
source§impl ValuatorStateModeMask
impl ValuatorStateModeMask
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<ValuatorStateModeMask> for u8
impl BitAnd<ValuatorStateModeMask> for u8
§type Output = ValuatorStateModeMask
type Output = ValuatorStateModeMask
The resulting type after applying the
&
operator.source§impl BitAnd<u8> for ValuatorStateModeMask
impl BitAnd<u8> for ValuatorStateModeMask
source§impl BitAnd for ValuatorStateModeMask
impl BitAnd for ValuatorStateModeMask
source§impl BitAndAssign<ValuatorStateModeMask> for u8
impl BitAndAssign<ValuatorStateModeMask> for u8
source§fn bitand_assign(&mut self, other: ValuatorStateModeMask)
fn bitand_assign(&mut self, other: ValuatorStateModeMask)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u8> for ValuatorStateModeMask
impl BitAndAssign<u8> for ValuatorStateModeMask
source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign for ValuatorStateModeMask
impl BitAndAssign for ValuatorStateModeMask
source§fn bitand_assign(&mut self, other: ValuatorStateModeMask)
fn bitand_assign(&mut self, other: ValuatorStateModeMask)
Performs the
&=
operation. Read moresource§impl BitOr<ValuatorStateModeMask> for u8
impl BitOr<ValuatorStateModeMask> for u8
§type Output = ValuatorStateModeMask
type Output = ValuatorStateModeMask
The resulting type after applying the
|
operator.source§impl BitOr<u8> for ValuatorStateModeMask
impl BitOr<u8> for ValuatorStateModeMask
source§impl BitOr for ValuatorStateModeMask
impl BitOr for ValuatorStateModeMask
source§impl BitOrAssign<ValuatorStateModeMask> for u8
impl BitOrAssign<ValuatorStateModeMask> for u8
source§fn bitor_assign(&mut self, other: ValuatorStateModeMask)
fn bitor_assign(&mut self, other: ValuatorStateModeMask)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u8> for ValuatorStateModeMask
impl BitOrAssign<u8> for ValuatorStateModeMask
source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign for ValuatorStateModeMask
impl BitOrAssign for ValuatorStateModeMask
source§fn bitor_assign(&mut self, other: ValuatorStateModeMask)
fn bitor_assign(&mut self, other: ValuatorStateModeMask)
Performs the
|=
operation. Read moresource§impl Clone for ValuatorStateModeMask
impl Clone for ValuatorStateModeMask
source§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 moresource§impl Debug for ValuatorStateModeMask
impl Debug for ValuatorStateModeMask
source§impl Default for ValuatorStateModeMask
impl Default for ValuatorStateModeMask
source§fn default() -> ValuatorStateModeMask
fn default() -> ValuatorStateModeMask
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ValuatorStateModeMask
impl<'de> Deserialize<'de> for ValuatorStateModeMask
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ValuatorStateModeMask> for Option<u16>
impl From<ValuatorStateModeMask> for Option<u16>
source§fn from(input: ValuatorStateModeMask) -> Self
fn from(input: ValuatorStateModeMask) -> Self
Converts to this type from the input type.
source§impl From<ValuatorStateModeMask> for Option<u32>
impl From<ValuatorStateModeMask> for Option<u32>
source§fn from(input: ValuatorStateModeMask) -> Self
fn from(input: ValuatorStateModeMask) -> Self
Converts to this type from the input type.
source§impl From<ValuatorStateModeMask> for Option<u8>
impl From<ValuatorStateModeMask> for Option<u8>
source§fn from(input: ValuatorStateModeMask) -> Self
fn from(input: ValuatorStateModeMask) -> Self
Converts to this type from the input type.
source§impl From<ValuatorStateModeMask> for u16
impl From<ValuatorStateModeMask> for u16
source§fn from(input: ValuatorStateModeMask) -> Self
fn from(input: ValuatorStateModeMask) -> Self
Converts to this type from the input type.
source§impl From<ValuatorStateModeMask> for u32
impl From<ValuatorStateModeMask> for u32
source§fn from(input: ValuatorStateModeMask) -> Self
fn from(input: ValuatorStateModeMask) -> Self
Converts to this type from the input type.
source§impl From<ValuatorStateModeMask> for u8
impl From<ValuatorStateModeMask> for u8
source§fn from(input: ValuatorStateModeMask) -> Self
fn from(input: ValuatorStateModeMask) -> Self
Converts to this type from the input type.
source§impl From<u8> for ValuatorStateModeMask
impl From<u8> for ValuatorStateModeMask
source§impl Hash for ValuatorStateModeMask
impl Hash for ValuatorStateModeMask
source§impl Ord for ValuatorStateModeMask
impl Ord for ValuatorStateModeMask
source§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
source§impl PartialEq for ValuatorStateModeMask
impl PartialEq for ValuatorStateModeMask
source§fn eq(&self, other: &ValuatorStateModeMask) -> bool
fn eq(&self, other: &ValuatorStateModeMask) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ValuatorStateModeMask
impl PartialOrd for ValuatorStateModeMask
source§fn partial_cmp(&self, other: &ValuatorStateModeMask) -> Option<Ordering>
fn partial_cmp(&self, other: &ValuatorStateModeMask) -> 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 moresource§impl Serialize for ValuatorStateModeMask
impl Serialize 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