Struct ChangeFeedbackControlMask
pub struct ChangeFeedbackControlMask(/* private fields */);
Implementations§
§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 = _
§impl ChangeFeedbackControlMask
impl ChangeFeedbackControlMask
pub 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.
pub 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.
pub 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§
§impl BitAnd<u32> for ChangeFeedbackControlMask
impl BitAnd<u32> for ChangeFeedbackControlMask
§impl BitAnd for ChangeFeedbackControlMask
impl BitAnd for ChangeFeedbackControlMask
§type Output = ChangeFeedbackControlMask
type Output = ChangeFeedbackControlMask
The resulting type after applying the
&
operator.§fn bitand(
self,
other: ChangeFeedbackControlMask,
) -> <ChangeFeedbackControlMask as BitAnd>::Output
fn bitand( self, other: ChangeFeedbackControlMask, ) -> <ChangeFeedbackControlMask as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for ChangeFeedbackControlMask
impl BitAndAssign<u32> for ChangeFeedbackControlMask
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for ChangeFeedbackControlMask
impl BitAndAssign for ChangeFeedbackControlMask
§fn bitand_assign(&mut self, other: ChangeFeedbackControlMask)
fn bitand_assign(&mut self, other: ChangeFeedbackControlMask)
Performs the
&=
operation. Read more§impl BitOr<u32> for ChangeFeedbackControlMask
impl BitOr<u32> for ChangeFeedbackControlMask
§impl BitOr for ChangeFeedbackControlMask
impl BitOr for ChangeFeedbackControlMask
§type Output = ChangeFeedbackControlMask
type Output = ChangeFeedbackControlMask
The resulting type after applying the
|
operator.§fn bitor(
self,
other: ChangeFeedbackControlMask,
) -> <ChangeFeedbackControlMask as BitOr>::Output
fn bitor( self, other: ChangeFeedbackControlMask, ) -> <ChangeFeedbackControlMask as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for ChangeFeedbackControlMask
impl BitOrAssign<u32> for ChangeFeedbackControlMask
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for ChangeFeedbackControlMask
impl BitOrAssign for ChangeFeedbackControlMask
§fn bitor_assign(&mut self, other: ChangeFeedbackControlMask)
fn bitor_assign(&mut self, other: ChangeFeedbackControlMask)
Performs the
|=
operation. Read more§impl Clone for ChangeFeedbackControlMask
impl Clone for ChangeFeedbackControlMask
§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 more§impl Debug for ChangeFeedbackControlMask
impl Debug for ChangeFeedbackControlMask
§impl Default for ChangeFeedbackControlMask
impl Default for ChangeFeedbackControlMask
§fn default() -> ChangeFeedbackControlMask
fn default() -> ChangeFeedbackControlMask
Returns the “default value” for a type. Read more
§impl From<u16> for ChangeFeedbackControlMask
impl From<u16> for ChangeFeedbackControlMask
§fn from(value: u16) -> ChangeFeedbackControlMask
fn from(value: u16) -> ChangeFeedbackControlMask
Converts to this type from the input type.
§impl From<u32> for ChangeFeedbackControlMask
impl From<u32> for ChangeFeedbackControlMask
§fn from(value: u32) -> ChangeFeedbackControlMask
fn from(value: u32) -> ChangeFeedbackControlMask
Converts to this type from the input type.
§impl From<u8> for ChangeFeedbackControlMask
impl From<u8> for ChangeFeedbackControlMask
§fn from(value: u8) -> ChangeFeedbackControlMask
fn from(value: u8) -> ChangeFeedbackControlMask
Converts to this type from the input type.
§impl Hash for ChangeFeedbackControlMask
impl Hash for ChangeFeedbackControlMask
§impl Ord for ChangeFeedbackControlMask
impl Ord for ChangeFeedbackControlMask
§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
§impl PartialEq for ChangeFeedbackControlMask
impl PartialEq for ChangeFeedbackControlMask
§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
)