pub struct Scancode { /* private fields */ }Expand description
A raw scancode emitted by a keyboard.
Can be constructed from raw integers via From<u8>, From<u16> and From<u32>.
Each KeymapEntry maps a scancode to an evdev key code.
The Scancode belonging to an entry can be fetched with KeymapEntry::scancode.
The Scancode type is also used when modifying the keymap using the
Evdev::set_keymap_entry and Evdev::set_keymap_entry_by_index functions.
Trait Implementations§
impl Copy for Scancode
Auto Trait Implementations§
impl Freeze for Scancode
impl RefUnwindSafe for Scancode
impl Send for Scancode
impl Sync for Scancode
impl Unpin for Scancode
impl UnsafeUnpin for Scancode
impl UnwindSafe for Scancode
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