Struct x11rb_protocol::protocol::xkb::BoolCtrl
source · pub struct BoolCtrl(u32);
Tuple Fields§
§0: u32
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 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
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
)