pub struct KB(/* private fields */);
Implementations§
source§impl KB
impl KB
pub const KEY_CLICK_PERCENT: KB = _
pub const BELL_PERCENT: KB = _
pub const BELL_PITCH: KB = _
pub const BELL_DURATION: KB = _
pub const LED: KB = _
pub const LED_MODE: KB = _
pub const KEY: KB = _
pub const AUTO_REPEAT_MODE: KB = _
source§impl KB
impl KB
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 KB
impl BitAndAssign<u32> for KB
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign for KB
impl BitAndAssign for KB
source§fn bitand_assign(&mut self, other: KB)
fn bitand_assign(&mut self, other: KB)
Performs the
&=
operation. Read moresource§impl BitOrAssign<u32> for KB
impl BitOrAssign<u32> for KB
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign for KB
impl BitOrAssign for KB
source§fn bitor_assign(&mut self, other: KB)
fn bitor_assign(&mut self, other: KB)
Performs the
|=
operation. Read moresource§impl Ord for KB
impl Ord for KB
source§impl PartialOrd for KB
impl PartialOrd for KB
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 KB
impl Eq for KB
impl StructuralEq for KB
impl StructuralPartialEq for KB
Auto Trait Implementations§
impl RefUnwindSafe for KB
impl Send for KB
impl Sync for KB
impl Unpin for KB
impl UnwindSafe for KB
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