Struct BoolCtrl
pub struct BoolCtrl(/* private fields */);
Implementations§
§impl BoolCtrl
impl BoolCtrl
pub const REPEAT_KEYS: BoolCtrl = _
pub const SLOW_KEYS: BoolCtrl = _
pub const BOUNCE_KEYS: BoolCtrl = _
pub const STICKY_KEYS: BoolCtrl = _
pub const MOUSE_KEYS: BoolCtrl = _
pub const MOUSE_KEYS_ACCEL: BoolCtrl = _
pub const ACCESS_X_KEYS: BoolCtrl = _
pub const ACCESS_X_TIMEOUT_MASK: BoolCtrl = _
pub const ACCESS_X_FEEDBACK_MASK: BoolCtrl = _
pub const AUDIBLE_BELL_MASK: BoolCtrl = _
pub const OVERLAY1_MASK: BoolCtrl = _
pub const OVERLAY2_MASK: BoolCtrl = _
pub const IGNORE_GROUP_LOCK_MASK: BoolCtrl = _
§impl BoolCtrl
impl BoolCtrl
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.
Trait Implementations§
§impl BitAndAssign<u32> for BoolCtrl
impl BitAndAssign<u32> for BoolCtrl
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for BoolCtrl
impl BitAndAssign for BoolCtrl
§fn bitand_assign(&mut self, other: BoolCtrl)
fn bitand_assign(&mut self, other: BoolCtrl)
Performs the
&=
operation. Read more§impl BitOrAssign<u32> for BoolCtrl
impl BitOrAssign<u32> for BoolCtrl
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for BoolCtrl
impl BitOrAssign for BoolCtrl
§fn bitor_assign(&mut self, other: BoolCtrl)
fn bitor_assign(&mut self, other: BoolCtrl)
Performs the
|=
operation. Read more§impl Ord for BoolCtrl
impl Ord for BoolCtrl
§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
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
)