pub struct KB(_);
Implementations
sourceimpl KB
impl KB
pub const KEY_CLICK_PERCENT: Self = Self(1 << 0)
pub const BELL_PERCENT: Self = Self(1 << 1)
pub const BELL_PITCH: Self = Self(1 << 2)
pub const BELL_DURATION: Self = Self(1 << 3)
pub const LED: Self = Self(1 << 4)
pub const LED_MODE: Self = Self(1 << 5)
pub const KEY: Self = Self(1 << 6)
pub const AUTO_REPEAT_MODE: Self = Self(1 << 7)
Trait Implementations
sourceimpl BitOrAssign<KB> for u8
impl BitOrAssign<KB> for u8
sourcefn bitor_assign(&mut self, other: KB)
fn bitor_assign(&mut self, other: KB)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<u8> for KB
impl BitOrAssign<u8> for KB
sourcefn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the |=
operation. Read more
sourceimpl Ord for KB
impl Ord for KB
sourceimpl PartialOrd<KB> for KB
impl PartialOrd<KB> for KB
sourcefn partial_cmp(&self, other: &KB) -> Option<Ordering>
fn partial_cmp(&self, other: &KB) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for KB
impl Eq for KB
impl StructuralEq for KB
impl StructuralPartialEq for KB
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more