pub struct KB(/* private fields */);
Implementations§
Source§impl KB
impl KB
pub const KEY_CLICK_PERCENT: Self
pub const BELL_PERCENT: Self
pub const BELL_PITCH: Self
pub const BELL_DURATION: Self
pub const LED: Self
pub const LED_MODE: Self
pub const KEY: Self
pub const AUTO_REPEAT_MODE: Self
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<KB> for u32
impl BitAndAssign<KB> for u32
Source§fn bitand_assign(&mut self, other: KB)
fn bitand_assign(&mut self, other: KB)
Performs the
&=
operation. Read moreSource§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<KB> for u32
impl BitOrAssign<KB> for u32
Source§fn bitor_assign(&mut self, other: KB)
fn bitor_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<'de> Deserialize<'de> for KB
impl<'de> Deserialize<'de> for KB
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for KB
impl Ord for KB
Source§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