Struct x11rb::protocol::xinput::ChangeFeedbackControlMask
source · pub struct ChangeFeedbackControlMask(u32);
Tuple Fields§
§0: u32
Implementations§
source§impl ChangeFeedbackControlMask
impl ChangeFeedbackControlMask
pub const KEY_CLICK_PERCENT: ChangeFeedbackControlMask = _
pub const PERCENT: ChangeFeedbackControlMask = _
pub const PITCH: ChangeFeedbackControlMask = _
pub const DURATION: ChangeFeedbackControlMask = _
pub const LED: ChangeFeedbackControlMask = _
pub const LED_MODE: ChangeFeedbackControlMask = _
pub const KEY: ChangeFeedbackControlMask = _
pub const AUTO_REPEAT_MODE: ChangeFeedbackControlMask = _
pub const STRING: ChangeFeedbackControlMask = _
pub const INTEGER: ChangeFeedbackControlMask = _
pub const ACCEL_NUM: ChangeFeedbackControlMask = _
pub const ACCEL_DENOM: ChangeFeedbackControlMask = _
pub const THRESHOLD: ChangeFeedbackControlMask = _
source§impl ChangeFeedbackControlMask
impl ChangeFeedbackControlMask
sourcepub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> 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<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> 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<u32>) -> ChangeFeedbackControlMask
pub fn remove(self, flags: impl Into<u32>) -> ChangeFeedbackControlMask
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<u32> for ChangeFeedbackControlMask
impl BitAnd<u32> for ChangeFeedbackControlMask
source§impl BitAnd for ChangeFeedbackControlMask
impl BitAnd for ChangeFeedbackControlMask
source§type Output = ChangeFeedbackControlMask
type Output = ChangeFeedbackControlMask
The resulting type after applying the
&
operator.source§fn bitand(
self,
other: ChangeFeedbackControlMask,
) -> <ChangeFeedbackControlMask as BitAnd>::Output
fn bitand( self, other: ChangeFeedbackControlMask, ) -> <ChangeFeedbackControlMask as BitAnd>::Output
Performs the
&
operation. Read moresource§impl BitAndAssign<u32> for ChangeFeedbackControlMask
impl BitAndAssign<u32> for ChangeFeedbackControlMask
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign for ChangeFeedbackControlMask
impl BitAndAssign for ChangeFeedbackControlMask
source§fn bitand_assign(&mut self, other: ChangeFeedbackControlMask)
fn bitand_assign(&mut self, other: ChangeFeedbackControlMask)
Performs the
&=
operation. Read moresource§impl BitOr<u32> for ChangeFeedbackControlMask
impl BitOr<u32> for ChangeFeedbackControlMask
source§impl BitOr for ChangeFeedbackControlMask
impl BitOr for ChangeFeedbackControlMask
source§type Output = ChangeFeedbackControlMask
type Output = ChangeFeedbackControlMask
The resulting type after applying the
|
operator.source§fn bitor(
self,
other: ChangeFeedbackControlMask,
) -> <ChangeFeedbackControlMask as BitOr>::Output
fn bitor( self, other: ChangeFeedbackControlMask, ) -> <ChangeFeedbackControlMask as BitOr>::Output
Performs the
|
operation. Read moresource§impl BitOrAssign<u32> for ChangeFeedbackControlMask
impl BitOrAssign<u32> for ChangeFeedbackControlMask
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign for ChangeFeedbackControlMask
impl BitOrAssign for ChangeFeedbackControlMask
source§fn bitor_assign(&mut self, other: ChangeFeedbackControlMask)
fn bitor_assign(&mut self, other: ChangeFeedbackControlMask)
Performs the
|=
operation. Read moresource§impl Clone for ChangeFeedbackControlMask
impl Clone for ChangeFeedbackControlMask
source§fn clone(&self) -> ChangeFeedbackControlMask
fn clone(&self) -> ChangeFeedbackControlMask
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 ChangeFeedbackControlMask
impl Debug for ChangeFeedbackControlMask
source§impl Default for ChangeFeedbackControlMask
impl Default for ChangeFeedbackControlMask
source§fn default() -> ChangeFeedbackControlMask
fn default() -> ChangeFeedbackControlMask
Returns the “default value” for a type. Read more
source§impl From<u16> for ChangeFeedbackControlMask
impl From<u16> for ChangeFeedbackControlMask
source§fn from(value: u16) -> ChangeFeedbackControlMask
fn from(value: u16) -> ChangeFeedbackControlMask
Converts to this type from the input type.
source§impl From<u32> for ChangeFeedbackControlMask
impl From<u32> for ChangeFeedbackControlMask
source§fn from(value: u32) -> ChangeFeedbackControlMask
fn from(value: u32) -> ChangeFeedbackControlMask
Converts to this type from the input type.
source§impl From<u8> for ChangeFeedbackControlMask
impl From<u8> for ChangeFeedbackControlMask
source§fn from(value: u8) -> ChangeFeedbackControlMask
fn from(value: u8) -> ChangeFeedbackControlMask
Converts to this type from the input type.
source§impl Hash for ChangeFeedbackControlMask
impl Hash for ChangeFeedbackControlMask
source§impl Ord for ChangeFeedbackControlMask
impl Ord for ChangeFeedbackControlMask
source§fn cmp(&self, other: &ChangeFeedbackControlMask) -> Ordering
fn cmp(&self, other: &ChangeFeedbackControlMask) -> 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 PartialOrd for ChangeFeedbackControlMask
impl PartialOrd for ChangeFeedbackControlMask
impl Copy for ChangeFeedbackControlMask
impl Eq for ChangeFeedbackControlMask
impl StructuralPartialEq for ChangeFeedbackControlMask
Auto Trait Implementations§
impl Freeze for ChangeFeedbackControlMask
impl RefUnwindSafe for ChangeFeedbackControlMask
impl Send for ChangeFeedbackControlMask
impl Sync for ChangeFeedbackControlMask
impl Unpin for ChangeFeedbackControlMask
impl UnwindSafe for ChangeFeedbackControlMask
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
)