Struct KB
pub struct KB(/* private fields */);
Implementations§
§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 = _
§impl KB
impl KB
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 KB
impl BitAndAssign<u32> for KB
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for KB
impl BitAndAssign for KB
§fn bitand_assign(&mut self, other: KB)
fn bitand_assign(&mut self, other: KB)
Performs the
&=
operation. Read more§impl BitOrAssign<u32> for KB
impl BitOrAssign<u32> for KB
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for KB
impl BitOrAssign for KB
§fn bitor_assign(&mut self, other: KB)
fn bitor_assign(&mut self, other: KB)
Performs the
|=
operation. Read more§impl Ord for KB
impl Ord for KB
§impl PartialOrd for KB
impl PartialOrd for KB
impl Copy for KB
impl Eq for KB
impl StructuralPartialEq for KB
Auto Trait Implementations§
impl Freeze for KB
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
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
)