Struct x11rb::protocol::xinput::ValuatorStateModeMask
source · pub struct ValuatorStateModeMask(/* private fields */);
Implementations§
source§impl ValuatorStateModeMask
impl ValuatorStateModeMask
pub const DEVICE_MODE_ABSOLUTE: ValuatorStateModeMask = _
pub const OUT_OF_PROXIMITY: ValuatorStateModeMask = _
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.
sourcepub 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§
source§impl BitAnd<u8> for ValuatorStateModeMask
impl BitAnd<u8> for ValuatorStateModeMask
source§impl BitAnd for ValuatorStateModeMask
impl BitAnd for ValuatorStateModeMask
§type Output = ValuatorStateModeMask
type Output = ValuatorStateModeMask
The resulting type after applying the
&
operator.source§fn bitand(
self,
other: ValuatorStateModeMask
) -> <ValuatorStateModeMask as BitAnd>::Output
fn bitand( self, other: ValuatorStateModeMask ) -> <ValuatorStateModeMask as BitAnd>::Output
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<u8> for ValuatorStateModeMask
impl BitOr<u8> for ValuatorStateModeMask
source§impl BitOr for ValuatorStateModeMask
impl BitOr for ValuatorStateModeMask
§type Output = ValuatorStateModeMask
type Output = ValuatorStateModeMask
The resulting type after applying the
|
operator.source§fn bitor(
self,
other: ValuatorStateModeMask
) -> <ValuatorStateModeMask as BitOr>::Output
fn bitor( self, other: ValuatorStateModeMask ) -> <ValuatorStateModeMask as BitOr>::Output
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 From<u8> for ValuatorStateModeMask
impl From<u8> for ValuatorStateModeMask
source§fn from(value: u8) -> ValuatorStateModeMask
fn from(value: u8) -> ValuatorStateModeMask
Converts to this type from the input type.
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 moreimpl Copy for ValuatorStateModeMask
impl Eq for ValuatorStateModeMask
impl StructuralEq for ValuatorStateModeMask
impl StructuralPartialEq for ValuatorStateModeMask
Auto Trait Implementations§
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