pub struct KeymapEntry(/* private fields */);Expand description
A device keymap entry translates a scancode to a keycode.
Note: This is not the same as the localized keymap you use in applications (like QWERTZ or AZERTY), which is handled by the X server or Wayland compositor. Instead, this keymap exists to translate raw scancodes from the keyboard to USB-HID keycodes, which are defined as a US layout.
Returned by Evdev::keymap_entry and Evdev::keymap_entry_by_index.
Implementations§
Source§impl KeymapEntry
impl KeymapEntry
Trait Implementations§
Source§impl Clone for KeymapEntry
impl Clone for KeymapEntry
Source§fn clone(&self) -> KeymapEntry
fn clone(&self) -> KeymapEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeymapEntry
impl Debug for KeymapEntry
impl Copy for KeymapEntry
Auto Trait Implementations§
impl Freeze for KeymapEntry
impl RefUnwindSafe for KeymapEntry
impl Send for KeymapEntry
impl Sync for KeymapEntry
impl Unpin for KeymapEntry
impl UnwindSafe for KeymapEntry
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