pub struct BoolCtrl(/* private fields */);
Implementations§
source§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 = _
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<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<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 Ord for BoolCtrl
impl Ord for BoolCtrl
source§impl PartialEq for BoolCtrl
impl PartialEq for BoolCtrl
source§impl PartialOrd for BoolCtrl
impl PartialOrd for BoolCtrl
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 BoolCtrl
impl Eq for BoolCtrl
impl StructuralEq for BoolCtrl
impl StructuralPartialEq for BoolCtrl
Auto Trait Implementations§
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