pub struct BoolCtrl(/* private fields */);
Implementations§
Source§impl BoolCtrl
impl BoolCtrl
pub const REPEAT_KEYS: Self
pub const SLOW_KEYS: Self
pub const BOUNCE_KEYS: Self
pub const STICKY_KEYS: Self
pub const MOUSE_KEYS: Self
pub const MOUSE_KEYS_ACCEL: Self
pub const ACCESS_X_KEYS: Self
pub const ACCESS_X_TIMEOUT_MASK: Self
pub const ACCESS_X_FEEDBACK_MASK: Self
pub const AUDIBLE_BELL_MASK: Self
pub const OVERLAY1_MASK: Self
pub const OVERLAY2_MASK: Self
pub const IGNORE_GROUP_LOCK_MASK: Self
Source§impl BoolCtrl
impl BoolCtrl
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.
Trait Implementations§
Source§impl BitAndAssign<BoolCtrl> for u32
impl BitAndAssign<BoolCtrl> for u32
Source§fn bitand_assign(&mut self, other: BoolCtrl)
fn bitand_assign(&mut self, other: BoolCtrl)
Performs the
&=
operation. Read moreSource§impl BitAndAssign<u32> for BoolCtrl
impl BitAndAssign<u32> for BoolCtrl
Source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moreSource§impl BitAndAssign for BoolCtrl
impl BitAndAssign for BoolCtrl
Source§fn bitand_assign(&mut self, other: BoolCtrl)
fn bitand_assign(&mut self, other: BoolCtrl)
Performs the
&=
operation. Read moreSource§impl BitOrAssign<BoolCtrl> for u32
impl BitOrAssign<BoolCtrl> for u32
Source§fn bitor_assign(&mut self, other: BoolCtrl)
fn bitor_assign(&mut self, other: BoolCtrl)
Performs the
|=
operation. Read moreSource§impl BitOrAssign<u32> for BoolCtrl
impl BitOrAssign<u32> for BoolCtrl
Source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moreSource§impl BitOrAssign for BoolCtrl
impl BitOrAssign for BoolCtrl
Source§fn bitor_assign(&mut self, other: BoolCtrl)
fn bitor_assign(&mut self, other: BoolCtrl)
Performs the
|=
operation. Read moreSource§impl<'de> Deserialize<'de> for BoolCtrl
impl<'de> Deserialize<'de> for BoolCtrl
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 Ord for BoolCtrl
impl Ord for BoolCtrl
Source§impl PartialOrd for BoolCtrl
impl PartialOrd for BoolCtrl
impl Copy for BoolCtrl
impl Eq for BoolCtrl
impl StructuralPartialEq for BoolCtrl
Auto Trait Implementations§
impl Freeze for BoolCtrl
impl RefUnwindSafe for BoolCtrl
impl Send for BoolCtrl
impl Sync for BoolCtrl
impl Unpin for BoolCtrl
impl UnwindSafe for BoolCtrl
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