Struct KeyCode

Source
#[repr(transparent)]
pub struct KeyCode(pub u16);
Available on Unix only.
Expand description

Scancodes for key presses.

Values correspond to /usr/include/linux/input-event-codes.h

Each associated constant for this struct represents a distinct key.

Tuple Fields§

§0: u16

Implementations§

Source§

impl KeyCode

Source

pub const fn new(code: u16) -> Self

Source

pub const fn code(self) -> u16

Source§

impl KeyCode

Source

pub const KEY_RESERVED: Self

Source

pub const KEY_ESC: Self

Source

pub const KEY_1: Self

Source

pub const KEY_2: Self

Source

pub const KEY_3: Self

Source

pub const KEY_4: Self

Source

pub const KEY_5: Self

Source

pub const KEY_6: Self

Source

pub const KEY_7: Self

Source

pub const KEY_8: Self

Source

pub const KEY_9: Self

Source

pub const KEY_0: Self

Source

pub const KEY_MINUS: Self

Source

pub const KEY_EQUAL: Self

Source

pub const KEY_BACKSPACE: Self

Source

pub const KEY_TAB: Self

Source

pub const KEY_Q: Self

Source

pub const KEY_W: Self

Source

pub const KEY_E: Self

Source

pub const KEY_R: Self

Source

pub const KEY_T: Self

Source

pub const KEY_Y: Self

Source

pub const KEY_U: Self

Source

pub const KEY_I: Self

Source

pub const KEY_O: Self

Source

pub const KEY_P: Self

Source

pub const KEY_LEFTBRACE: Self

Source

pub const KEY_RIGHTBRACE: Self

Source

pub const KEY_ENTER: Self

Source

pub const KEY_LEFTCTRL: Self

Source

pub const KEY_A: Self

Source

pub const KEY_S: Self

Source

pub const KEY_D: Self

Source

pub const KEY_F: Self

Source

pub const KEY_G: Self

Source

pub const KEY_H: Self

Source

pub const KEY_J: Self

Source

pub const KEY_K: Self

Source

pub const KEY_L: Self

Source

pub const KEY_SEMICOLON: Self

Source

pub const KEY_APOSTROPHE: Self

Source

pub const KEY_GRAVE: Self

Source

pub const KEY_LEFTSHIFT: Self

Source

pub const KEY_BACKSLASH: Self

Source

pub const KEY_Z: Self

Source

pub const KEY_X: Self

Source

pub const KEY_C: Self

Source

pub const KEY_V: Self

Source

pub const KEY_B: Self

Source

pub const KEY_N: Self

Source

pub const KEY_M: Self

Source

pub const KEY_COMMA: Self

Source

pub const KEY_DOT: Self

Source

pub const KEY_SLASH: Self

Source

pub const KEY_RIGHTSHIFT: Self

Source

pub const KEY_KPASTERISK: Self

Source

pub const KEY_LEFTALT: Self

Source

pub const KEY_SPACE: Self

Source

pub const KEY_CAPSLOCK: Self

Source

pub const KEY_F1: Self

Source

pub const KEY_F2: Self

Source

pub const KEY_F3: Self

Source

pub const KEY_F4: Self

Source

pub const KEY_F5: Self

Source

pub const KEY_F6: Self

Source

pub const KEY_F7: Self

Source

pub const KEY_F8: Self

Source

pub const KEY_F9: Self

Source

pub const KEY_F10: Self

Source

pub const KEY_NUMLOCK: Self

Source

pub const KEY_SCROLLLOCK: Self

Source

pub const KEY_KP7: Self

Source

pub const KEY_KP8: Self

Source

pub const KEY_KP9: Self

Source

pub const KEY_KPMINUS: Self

Source

pub const KEY_KP4: Self

Source

pub const KEY_KP5: Self

Source

pub const KEY_KP6: Self

Source

pub const KEY_KPPLUS: Self

Source

pub const KEY_KP1: Self

Source

pub const KEY_KP2: Self

Source

pub const KEY_KP3: Self

Source

pub const KEY_KP0: Self

Source

pub const KEY_KPDOT: Self

Source

pub const KEY_ZENKAKUHANKAKU: Self

Source

pub const KEY_102ND: Self

Source

pub const KEY_F11: Self

Source

pub const KEY_F12: Self

Source

pub const KEY_RO: Self

Source

pub const KEY_KATAKANA: Self

Source

pub const KEY_HIRAGANA: Self

Source

pub const KEY_HENKAN: Self

Source

pub const KEY_KATAKANAHIRAGANA: Self

Source

pub const KEY_MUHENKAN: Self

Source

pub const KEY_KPJPCOMMA: Self

Source

pub const KEY_KPENTER: Self

Source

pub const KEY_RIGHTCTRL: Self

Source

pub const KEY_KPSLASH: Self

Source

pub const KEY_SYSRQ: Self

Source

pub const KEY_RIGHTALT: Self

Source

pub const KEY_LINEFEED: Self

Source

pub const KEY_HOME: Self

Source

pub const KEY_UP: Self

Source

pub const KEY_PAGEUP: Self

Source

pub const KEY_LEFT: Self

Source

pub const KEY_RIGHT: Self

Source

pub const KEY_END: Self

Source

pub const KEY_DOWN: Self

Source

pub const KEY_PAGEDOWN: Self

Source

pub const KEY_INSERT: Self

Source

pub const KEY_DELETE: Self

Source

pub const KEY_MACRO: Self

Source

pub const KEY_MUTE: Self

Source

pub const KEY_VOLUMEDOWN: Self

Source

pub const KEY_VOLUMEUP: Self

Source

pub const KEY_POWER: Self

Source

pub const KEY_KPEQUAL: Self

Source

pub const KEY_KPPLUSMINUS: Self

Source

pub const KEY_PAUSE: Self

Source

pub const KEY_SCALE: Self

Source

pub const KEY_KPCOMMA: Self

Source

pub const KEY_HANGEUL: Self

Source

pub const KEY_HANJA: Self

Source

pub const KEY_YEN: Self

Source

pub const KEY_LEFTMETA: Self

Source

pub const KEY_RIGHTMETA: Self

Source

pub const KEY_COMPOSE: Self

Source

pub const KEY_STOP: Self

Source

pub const KEY_AGAIN: Self

Source

pub const KEY_PROPS: Self

Source

pub const KEY_UNDO: Self

Source

pub const KEY_FRONT: Self

Source

pub const KEY_COPY: Self

Source

pub const KEY_OPEN: Self

Source

pub const KEY_PASTE: Self

Source

pub const KEY_FIND: Self

Source

pub const KEY_CUT: Self

Source

pub const KEY_HELP: Self

Source

pub const KEY_MENU: Self

Source

pub const KEY_CALC: Self

Source

pub const KEY_SETUP: Self

Source

pub const KEY_SLEEP: Self

Source

pub const KEY_WAKEUP: Self

Source

pub const KEY_FILE: Self

Source

pub const KEY_SENDFILE: Self

Source

pub const KEY_DELETEFILE: Self

Source

pub const KEY_XFER: Self

Source

pub const KEY_PROG1: Self

Source

pub const KEY_PROG2: Self

Source

pub const KEY_WWW: Self

Source

pub const KEY_MSDOS: Self

Source

pub const KEY_COFFEE: Self

Source

pub const KEY_DIRECTION: Self

Source

pub const KEY_ROTATE_DISPLAY: Self

Source

pub const KEY_CYCLEWINDOWS: Self

Source

pub const KEY_MAIL: Self

Source

pub const KEY_BOOKMARKS: Self

Source

pub const KEY_COMPUTER: Self

Source

pub const KEY_BACK: Self

Source

pub const KEY_FORWARD: Self

Source

pub const KEY_CLOSECD: Self

Source

pub const KEY_EJECTCD: Self

Source

pub const KEY_EJECTCLOSECD: Self

Source

pub const KEY_NEXTSONG: Self

Source

pub const KEY_PLAYPAUSE: Self

Source

pub const KEY_PREVIOUSSONG: Self

Source

pub const KEY_STOPCD: Self

Source

pub const KEY_RECORD: Self

Source

pub const KEY_REWIND: Self

Source

pub const KEY_PHONE: Self

Source

pub const KEY_ISO: Self

Source

pub const KEY_CONFIG: Self

Source

pub const KEY_HOMEPAGE: Self

Source

pub const KEY_REFRESH: Self

Source

pub const KEY_EXIT: Self

Source

pub const KEY_MOVE: Self

Source

pub const KEY_EDIT: Self

Source

pub const KEY_SCROLLUP: Self

Source

pub const KEY_SCROLLDOWN: Self

Source

pub const KEY_KPLEFTPAREN: Self

Source

pub const KEY_KPRIGHTPAREN: Self

Source

pub const KEY_NEW: Self

Source

pub const KEY_REDO: Self

Source

pub const KEY_F13: Self

Source

pub const KEY_F14: Self

Source

pub const KEY_F15: Self

Source

pub const KEY_F16: Self

Source

pub const KEY_F17: Self

Source

pub const KEY_F18: Self

Source

pub const KEY_F19: Self

Source

pub const KEY_F20: Self

Source

pub const KEY_F21: Self

Source

pub const KEY_F22: Self

Source

pub const KEY_F23: Self

Source

pub const KEY_F24: Self

Source

pub const KEY_PLAYCD: Self

Source

pub const KEY_PAUSECD: Self

Source

pub const KEY_PROG3: Self

Source

pub const KEY_PROG4: Self

Source

pub const KEY_DASHBOARD: Self

Source

pub const KEY_SUSPEND: Self

Source

pub const KEY_CLOSE: Self

Source

pub const KEY_PLAY: Self

Source

pub const KEY_FASTFORWARD: Self

Source

pub const KEY_BASSBOOST: Self

Source

pub const KEY_PRINT: Self

Source

pub const KEY_HP: Self

Source

pub const KEY_CAMERA: Self

Source

pub const KEY_SOUND: Self

Source

pub const KEY_QUESTION: Self

Source

pub const KEY_EMAIL: Self

Source

pub const KEY_CHAT: Self

Source

pub const KEY_CONNECT: Self

Source

pub const KEY_FINANCE: Self

Source

pub const KEY_SPORT: Self

Source

pub const KEY_SHOP: Self

Source

pub const KEY_ALTERASE: Self

Source

pub const KEY_CANCEL: Self

Source

pub const KEY_BRIGHTNESSDOWN: Self

Source

pub const KEY_BRIGHTNESSUP: Self

Source

pub const KEY_MEDIA: Self

Source

pub const KEY_SWITCHVIDEOMODE: Self

Source

pub const KEY_KBDILLUMTOGGLE: Self

Source

pub const KEY_KBDILLUMDOWN: Self

Source

pub const KEY_KBDILLUMUP: Self

Source

pub const KEY_SEND: Self

Source

pub const KEY_REPLY: Self

Source

pub const KEY_FORWARDMAIL: Self

Source

pub const KEY_SAVE: Self

Source

pub const KEY_DOCUMENTS: Self

Source

pub const KEY_BATTERY: Self

Source

pub const KEY_BLUETOOTH: Self

Source

pub const KEY_WLAN: Self

Source

pub const KEY_UWB: Self

Source

pub const KEY_UNKNOWN: Self

Source

pub const KEY_VIDEO_NEXT: Self

Source

pub const KEY_VIDEO_PREV: Self

Source

pub const KEY_BRIGHTNESS_CYCLE: Self

Source

pub const KEY_BRIGHTNESS_AUTO: Self

Source

pub const KEY_DISPLAY_OFF: Self

Source

pub const KEY_WWAN: Self

Source

pub const KEY_RFKILL: Self

Source

pub const KEY_MICMUTE: Self

Source

pub const BTN_0: Self

Source

pub const BTN_1: Self

Source

pub const BTN_2: Self

Source

pub const BTN_3: Self

Source

pub const BTN_4: Self

Source

pub const BTN_5: Self

Source

pub const BTN_6: Self

Source

pub const BTN_7: Self

Source

pub const BTN_8: Self

Source

pub const BTN_9: Self

Source

pub const BTN_LEFT: Self

Source

pub const BTN_RIGHT: Self

Source

pub const BTN_MIDDLE: Self

Source

pub const BTN_SIDE: Self

Source

pub const BTN_EXTRA: Self

Source

pub const BTN_FORWARD: Self

Source

pub const BTN_BACK: Self

Source

pub const BTN_TASK: Self

Source

pub const BTN_TRIGGER: Self

Source

pub const BTN_THUMB: Self

Source

pub const BTN_THUMB2: Self

Source

pub const BTN_TOP: Self

Source

pub const BTN_TOP2: Self

Source

pub const BTN_PINKIE: Self

Source

pub const BTN_BASE: Self

Source

pub const BTN_BASE2: Self

Source

pub const BTN_BASE3: Self

Source

pub const BTN_BASE4: Self

Source

pub const BTN_BASE5: Self

Source

pub const BTN_BASE6: Self

Source

pub const BTN_DEAD: Self

Source

pub const BTN_SOUTH: Self

Source

pub const BTN_EAST: Self

Source

pub const BTN_C: Self

Source

pub const BTN_NORTH: Self

Source

pub const BTN_WEST: Self

Source

pub const BTN_Z: Self

Source

pub const BTN_TL: Self

Source

pub const BTN_TR: Self

Source

pub const BTN_TL2: Self

Source

pub const BTN_TR2: Self

Source

pub const BTN_SELECT: Self

Source

pub const BTN_START: Self

Source

pub const BTN_MODE: Self

Source

pub const BTN_THUMBL: Self

Source

pub const BTN_THUMBR: Self

Source

pub const BTN_TOOL_PEN: Self

Source

pub const BTN_TOOL_RUBBER: Self

Source

pub const BTN_TOOL_BRUSH: Self

Source

pub const BTN_TOOL_PENCIL: Self

Source

pub const BTN_TOOL_AIRBRUSH: Self

Source

pub const BTN_TOOL_FINGER: Self

Source

pub const BTN_TOOL_MOUSE: Self

Source

pub const BTN_TOOL_LENS: Self

Source

pub const BTN_TOOL_QUINTTAP: Self

Source

pub const BTN_TOUCH: Self

Source

pub const BTN_STYLUS: Self

Source

pub const BTN_STYLUS2: Self

Source

pub const BTN_TOOL_DOUBLETAP: Self

Source

pub const BTN_TOOL_TRIPLETAP: Self

Source

pub const BTN_TOOL_QUADTAP: Self

Source

pub const BTN_GEAR_DOWN: Self

Source

pub const BTN_GEAR_UP: Self

Source

pub const KEY_OK: Self

Source

pub const KEY_SELECT: Self

Source

pub const KEY_GOTO: Self

Source

pub const KEY_CLEAR: Self

Source

pub const KEY_POWER2: Self

Source

pub const KEY_OPTION: Self

Source

pub const KEY_INFO: Self

Source

pub const KEY_TIME: Self

Source

pub const KEY_VENDOR: Self

Source

pub const KEY_ARCHIVE: Self

Source

pub const KEY_PROGRAM: Self

Source

pub const KEY_CHANNEL: Self

Source

pub const KEY_FAVORITES: Self

Source

pub const KEY_EPG: Self

Source

pub const KEY_PVR: Self

Source

pub const KEY_MHP: Self

Source

pub const KEY_LANGUAGE: Self

Source

pub const KEY_TITLE: Self

Source

pub const KEY_SUBTITLE: Self

Source

pub const KEY_ANGLE: Self

Source

pub const KEY_ZOOM: Self

Source

pub const KEY_FULL_SCREEN: Self

Source

pub const KEY_MODE: Self

Source

pub const KEY_KEYBOARD: Self

Source

pub const KEY_SCREEN: Self

Source

pub const KEY_PC: Self

Source

pub const KEY_TV: Self

Source

pub const KEY_TV2: Self

Source

pub const KEY_VCR: Self

Source

pub const KEY_VCR2: Self

Source

pub const KEY_SAT: Self

Source

pub const KEY_SAT2: Self

Source

pub const KEY_CD: Self

Source

pub const KEY_TAPE: Self

Source

pub const KEY_RADIO: Self

Source

pub const KEY_TUNER: Self

Source

pub const KEY_PLAYER: Self

Source

pub const KEY_TEXT: Self

Source

pub const KEY_DVD: Self

Source

pub const KEY_AUX: Self

Source

pub const KEY_MP3: Self

Source

pub const KEY_AUDIO: Self

Source

pub const KEY_VIDEO: Self

Source

pub const KEY_DIRECTORY: Self

Source

pub const KEY_LIST: Self

Source

pub const KEY_MEMO: Self

Source

pub const KEY_CALENDAR: Self

Source

pub const KEY_RED: Self

Source

pub const KEY_GREEN: Self

Source

pub const KEY_YELLOW: Self

Source

pub const KEY_BLUE: Self

Source

pub const KEY_CHANNELUP: Self

Source

pub const KEY_CHANNELDOWN: Self

Source

pub const KEY_FIRST: Self

Source

pub const KEY_LAST: Self

Source

pub const KEY_AB: Self

Source

pub const KEY_NEXT: Self

Source

pub const KEY_RESTART: Self

Source

pub const KEY_SLOW: Self

Source

pub const KEY_SHUFFLE: Self

Source

pub const KEY_BREAK: Self

Source

pub const KEY_PREVIOUS: Self

Source

pub const KEY_DIGITS: Self

Source

pub const KEY_TEEN: Self

Source

pub const KEY_TWEN: Self

Source

pub const KEY_VIDEOPHONE: Self

Source

pub const KEY_GAMES: Self

Source

pub const KEY_ZOOMIN: Self

Source

pub const KEY_ZOOMOUT: Self

Source

pub const KEY_ZOOMRESET: Self

Source

pub const KEY_WORDPROCESSOR: Self

Source

pub const KEY_EDITOR: Self

Source

pub const KEY_SPREADSHEET: Self

Source

pub const KEY_GRAPHICSEDITOR: Self

Source

pub const KEY_PRESENTATION: Self

Source

pub const KEY_DATABASE: Self

Source

pub const KEY_NEWS: Self

Source

pub const KEY_VOICEMAIL: Self

Source

pub const KEY_ADDRESSBOOK: Self

Source

pub const KEY_MESSENGER: Self

Source

pub const KEY_DISPLAYTOGGLE: Self

Source

pub const KEY_SPELLCHECK: Self

Source

pub const KEY_LOGOFF: Self

Source

pub const KEY_DOLLAR: Self

Source

pub const KEY_EURO: Self

Source

pub const KEY_FRAMEBACK: Self

Source

pub const KEY_FRAMEFORWARD: Self

Source

pub const KEY_CONTEXT_MENU: Self

Source

pub const KEY_MEDIA_REPEAT: Self

Source

pub const KEY_10CHANNELSUP: Self

Source

pub const KEY_10CHANNELSDOWN: Self

Source

pub const KEY_IMAGES: Self

Source

pub const KEY_PICKUP_PHONE: Self

Source

pub const KEY_HANGUP_PHONE: Self

Source

pub const KEY_DEL_EOL: Self

Source

pub const KEY_DEL_EOS: Self

Source

pub const KEY_INS_LINE: Self

Source

pub const KEY_DEL_LINE: Self

Source

pub const KEY_FN: Self

Source

pub const KEY_FN_ESC: Self

Source

pub const KEY_FN_F1: Self

Source

pub const KEY_FN_F2: Self

Source

pub const KEY_FN_F3: Self

Source

pub const KEY_FN_F4: Self

Source

pub const KEY_FN_F5: Self

Source

pub const KEY_FN_F6: Self

Source

pub const KEY_FN_F7: Self

Source

pub const KEY_FN_F8: Self

Source

pub const KEY_FN_F9: Self

Source

pub const KEY_FN_F10: Self

Source

pub const KEY_FN_F11: Self

Source

pub const KEY_FN_F12: Self

Source

pub const KEY_FN_1: Self

Source

pub const KEY_FN_2: Self

Source

pub const KEY_FN_D: Self

Source

pub const KEY_FN_E: Self

Source

pub const KEY_FN_F: Self

Source

pub const KEY_FN_S: Self

Source

pub const KEY_FN_B: Self

Source

pub const KEY_BRL_DOT1: Self

Source

pub const KEY_BRL_DOT2: Self

Source

pub const KEY_BRL_DOT3: Self

Source

pub const KEY_BRL_DOT4: Self

Source

pub const KEY_BRL_DOT5: Self

Source

pub const KEY_BRL_DOT6: Self

Source

pub const KEY_BRL_DOT7: Self

Source

pub const KEY_BRL_DOT8: Self

Source

pub const KEY_BRL_DOT9: Self

Source

pub const KEY_BRL_DOT10: Self

Source

pub const KEY_NUMERIC_0: Self

Source

pub const KEY_NUMERIC_1: Self

Source

pub const KEY_NUMERIC_2: Self

Source

pub const KEY_NUMERIC_3: Self

Source

pub const KEY_NUMERIC_4: Self

Source

pub const KEY_NUMERIC_5: Self

Source

pub const KEY_NUMERIC_6: Self

Source

pub const KEY_NUMERIC_7: Self

Source

pub const KEY_NUMERIC_8: Self

Source

pub const KEY_NUMERIC_9: Self

Source

pub const KEY_NUMERIC_STAR: Self

Source

pub const KEY_NUMERIC_POUND: Self

Source

pub const KEY_NUMERIC_A: Self

Source

pub const KEY_NUMERIC_B: Self

Source

pub const KEY_NUMERIC_C: Self

Source

pub const KEY_NUMERIC_D: Self

Source

pub const KEY_CAMERA_FOCUS: Self

Source

pub const KEY_WPS_BUTTON: Self

Source

pub const KEY_TOUCHPAD_TOGGLE: Self

Source

pub const KEY_TOUCHPAD_ON: Self

Source

pub const KEY_TOUCHPAD_OFF: Self

Source

pub const KEY_CAMERA_ZOOMIN: Self

Source

pub const KEY_CAMERA_ZOOMOUT: Self

Source

pub const KEY_CAMERA_UP: Self

Source

pub const KEY_CAMERA_DOWN: Self

Source

pub const KEY_CAMERA_LEFT: Self

Source

pub const KEY_CAMERA_RIGHT: Self

Source

pub const KEY_ATTENDANT_ON: Self

Source

pub const KEY_ATTENDANT_OFF: Self

Source

pub const KEY_ATTENDANT_TOGGLE: Self

Source

pub const KEY_LIGHTS_TOGGLE: Self

Source

pub const BTN_DPAD_UP: Self

Source

pub const BTN_DPAD_DOWN: Self

Source

pub const BTN_DPAD_LEFT: Self

Source

pub const BTN_DPAD_RIGHT: Self

Source

pub const KEY_ALS_TOGGLE: Self

Source

pub const KEY_BUTTONCONFIG: Self

Source

pub const KEY_TASKMANAGER: Self

Source

pub const KEY_JOURNAL: Self

Source

pub const KEY_CONTROLPANEL: Self

Source

pub const KEY_APPSELECT: Self

Source

pub const KEY_SCREENSAVER: Self

Source

pub const KEY_VOICECOMMAND: Self

Source

pub const KEY_ASSISTANT: Self

Source

pub const KEY_KBD_LAYOUT_NEXT: Self

Source

pub const KEY_BRIGHTNESS_MIN: Self

Source

pub const KEY_BRIGHTNESS_MAX: Self

Source

pub const KEY_KBDINPUTASSIST_PREV: Self

Source

pub const KEY_KBDINPUTASSIST_NEXT: Self

Source

pub const KEY_KBDINPUTASSIST_PREVGROUP: Self

Source

pub const KEY_KBDINPUTASSIST_NEXTGROUP: Self

Source

pub const KEY_KBDINPUTASSIST_ACCEPT: Self

Source

pub const KEY_KBDINPUTASSIST_CANCEL: Self

Source

pub const KEY_RIGHT_UP: Self

Source

pub const KEY_RIGHT_DOWN: Self

Source

pub const KEY_LEFT_UP: Self

Source

pub const KEY_LEFT_DOWN: Self

Source

pub const KEY_ROOT_MENU: Self

Source

pub const KEY_MEDIA_TOP_MENU: Self

Source

pub const KEY_NUMERIC_11: Self

Source

pub const KEY_NUMERIC_12: Self

Source

pub const KEY_AUDIO_DESC: Self

Source

pub const KEY_3D_MODE: Self

Source

pub const KEY_NEXT_FAVORITE: Self

Source

pub const KEY_STOP_RECORD: Self

Source

pub const KEY_PAUSE_RECORD: Self

Source

pub const KEY_VOD: Self

Source

pub const KEY_UNMUTE: Self

Source

pub const KEY_FASTREVERSE: Self

Source

pub const KEY_SLOWREVERSE: Self

Source

pub const KEY_DATA: Self

Source

pub const KEY_ONSCREEN_KEYBOARD: Self

Source

pub const KEY_PRIVACY_SCREEN_TOGGLE: Self

Source

pub const KEY_SELECTIVE_SCREENSHOT: Self

Source

pub const BTN_TRIGGER_HAPPY1: Self

Source

pub const BTN_TRIGGER_HAPPY2: Self

Source

pub const BTN_TRIGGER_HAPPY3: Self

Source

pub const BTN_TRIGGER_HAPPY4: Self

Source

pub const BTN_TRIGGER_HAPPY5: Self

Source

pub const BTN_TRIGGER_HAPPY6: Self

Source

pub const BTN_TRIGGER_HAPPY7: Self

Source

pub const BTN_TRIGGER_HAPPY8: Self

Source

pub const BTN_TRIGGER_HAPPY9: Self

Source

pub const BTN_TRIGGER_HAPPY10: Self

Source

pub const BTN_TRIGGER_HAPPY11: Self

Source

pub const BTN_TRIGGER_HAPPY12: Self

Source

pub const BTN_TRIGGER_HAPPY13: Self

Source

pub const BTN_TRIGGER_HAPPY14: Self

Source

pub const BTN_TRIGGER_HAPPY15: Self

Source

pub const BTN_TRIGGER_HAPPY16: Self

Source

pub const BTN_TRIGGER_HAPPY17: Self

Source

pub const BTN_TRIGGER_HAPPY18: Self

Source

pub const BTN_TRIGGER_HAPPY19: Self

Source

pub const BTN_TRIGGER_HAPPY20: Self

Source

pub const BTN_TRIGGER_HAPPY21: Self

Source

pub const BTN_TRIGGER_HAPPY22: Self

Source

pub const BTN_TRIGGER_HAPPY23: Self

Source

pub const BTN_TRIGGER_HAPPY24: Self

Source

pub const BTN_TRIGGER_HAPPY25: Self

Source

pub const BTN_TRIGGER_HAPPY26: Self

Source

pub const BTN_TRIGGER_HAPPY27: Self

Source

pub const BTN_TRIGGER_HAPPY28: Self

Source

pub const BTN_TRIGGER_HAPPY29: Self

Source

pub const BTN_TRIGGER_HAPPY30: Self

Source

pub const BTN_TRIGGER_HAPPY31: Self

Source

pub const BTN_TRIGGER_HAPPY32: Self

Source

pub const BTN_TRIGGER_HAPPY33: Self

Source

pub const BTN_TRIGGER_HAPPY34: Self

Source

pub const BTN_TRIGGER_HAPPY35: Self

Source

pub const BTN_TRIGGER_HAPPY36: Self

Source

pub const BTN_TRIGGER_HAPPY37: Self

Source

pub const BTN_TRIGGER_HAPPY38: Self

Source

pub const BTN_TRIGGER_HAPPY39: Self

Source

pub const BTN_TRIGGER_HAPPY40: Self

Trait Implementations§

Source§

impl Clone for KeyCode

Source§

fn clone(&self) -> KeyCode

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for KeyCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for KeyCode

Available on crate feature serde only.
Source§

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 EvdevEnum for KeyCode

Source§

impl FromStr for KeyCode

Source§

type Err = EnumParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for KeyCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for KeyCode

Source§

fn cmp(&self, other: &KeyCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for KeyCode

Source§

fn eq(&self, other: &KeyCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for KeyCode

Source§

fn partial_cmp(&self, other: &KeyCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for KeyCode

Available on crate feature serde only.
Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for KeyCode

Source§

impl Eq for KeyCode

Source§

impl StructuralPartialEq for KeyCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,