[−][src]Enum keytokey::KeyCode
usb key codes mapped into the first private region of unicode USBKeyOut must substract UNICODE_BELOW_256 to create valid u8 values to transmit
Variants
0x76, // Keyboard Menu
Implementations
impl KeyCode
[src]
pub fn is_modifier(self) -> bool
[src]
needed to build USB reports
pub fn as_modifier_bit(self) -> u8
[src]
needed to build USB reports
pub fn to_u8(self) -> u8
[src]
pub const fn to_u32(self) -> u32
[src]
Trait Implementations
impl AcceptsKeycode for KeyCode
[src]
impl Action for KeyCode
[src]
Register a key as an Action
that means the current modifiers are sent as well by USBKeyboard
fn on_trigger(&mut self, output: &mut dyn USBKeyOut)
[src]
impl Clone for KeyCode
[src]
fn clone(&self) -> KeyCode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for KeyCode
[src]
impl Debug for KeyCode
[src]
impl Eq for KeyCode
[src]
impl From<KeyCode> for u32
[src]
impl Ord for KeyCode
[src]
fn cmp(&self, other: &KeyCode) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<KeyCode> for KeyCode
[src]
impl PartialOrd<KeyCode> for KeyCode
[src]
fn partial_cmp(&self, other: &KeyCode) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for KeyCode
[src]
impl StructuralPartialEq for KeyCode
[src]
impl TryFrom<u32> for KeyCode
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(number: u32) -> Result<Self, String>
[src]
impl TryFrom<u8> for KeyCode
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,