Skip to main content

Key

Struct Key 

Source
#[repr(transparent)]
pub struct Key(pub u16);
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 Key

Source

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

Source

pub const fn code(self) -> u16

Source§

impl Key

Source

pub const KEY_RESERVED: Key

Source

pub const KEY_ESC: Key

Source

pub const KEY_1: Key

Source

pub const KEY_2: Key

Source

pub const KEY_3: Key

Source

pub const KEY_4: Key

Source

pub const KEY_5: Key

Source

pub const KEY_6: Key

Source

pub const KEY_7: Key

Source

pub const KEY_8: Key

Source

pub const KEY_9: Key

Source

pub const KEY_0: Key

Source

pub const KEY_MINUS: Key

Source

pub const KEY_EQUAL: Key

Source

pub const KEY_BACKSPACE: Key

Source

pub const KEY_TAB: Key

Source

pub const KEY_Q: Key

Source

pub const KEY_W: Key

Source

pub const KEY_E: Key

Source

pub const KEY_R: Key

Source

pub const KEY_T: Key

Source

pub const KEY_Y: Key

Source

pub const KEY_U: Key

Source

pub const KEY_I: Key

Source

pub const KEY_O: Key

Source

pub const KEY_P: Key

Source

pub const KEY_LEFTBRACE: Key

Source

pub const KEY_RIGHTBRACE: Key

Source

pub const KEY_ENTER: Key

Source

pub const KEY_LEFTCTRL: Key

Source

pub const KEY_A: Key

Source

pub const KEY_S: Key

Source

pub const KEY_D: Key

Source

pub const KEY_F: Key

Source

pub const KEY_G: Key

Source

pub const KEY_H: Key

Source

pub const KEY_J: Key

Source

pub const KEY_K: Key

Source

pub const KEY_L: Key

Source

pub const KEY_SEMICOLON: Key

Source

pub const KEY_APOSTROPHE: Key

Source

pub const KEY_GRAVE: Key

Source

pub const KEY_LEFTSHIFT: Key

Source

pub const KEY_BACKSLASH: Key

Source

pub const KEY_Z: Key

Source

pub const KEY_X: Key

Source

pub const KEY_C: Key

Source

pub const KEY_V: Key

Source

pub const KEY_B: Key

Source

pub const KEY_N: Key

Source

pub const KEY_M: Key

Source

pub const KEY_COMMA: Key

Source

pub const KEY_DOT: Key

Source

pub const KEY_SLASH: Key

Source

pub const KEY_RIGHTSHIFT: Key

Source

pub const KEY_KPASTERISK: Key

Source

pub const KEY_LEFTALT: Key

Source

pub const KEY_SPACE: Key

Source

pub const KEY_CAPSLOCK: Key

Source

pub const KEY_F1: Key

Source

pub const KEY_F2: Key

Source

pub const KEY_F3: Key

Source

pub const KEY_F4: Key

Source

pub const KEY_F5: Key

Source

pub const KEY_F6: Key

Source

pub const KEY_F7: Key

Source

pub const KEY_F8: Key

Source

pub const KEY_F9: Key

Source

pub const KEY_F10: Key

Source

pub const KEY_NUMLOCK: Key

Source

pub const KEY_SCROLLLOCK: Key

Source

pub const KEY_KP7: Key

Source

pub const KEY_KP8: Key

Source

pub const KEY_KP9: Key

Source

pub const KEY_KPMINUS: Key

Source

pub const KEY_KP4: Key

Source

pub const KEY_KP5: Key

Source

pub const KEY_KP6: Key

Source

pub const KEY_KPPLUS: Key

Source

pub const KEY_KP1: Key

Source

pub const KEY_KP2: Key

Source

pub const KEY_KP3: Key

Source

pub const KEY_KP0: Key

Source

pub const KEY_KPDOT: Key

Source

pub const KEY_ZENKAKUHANKAKU: Key

Source

pub const KEY_102ND: Key

Source

pub const KEY_F11: Key

Source

pub const KEY_F12: Key

Source

pub const KEY_RO: Key

Source

pub const KEY_KATAKANA: Key

Source

pub const KEY_HIRAGANA: Key

Source

pub const KEY_HENKAN: Key

Source

pub const KEY_KATAKANAHIRAGANA: Key

Source

pub const KEY_MUHENKAN: Key

Source

pub const KEY_KPJPCOMMA: Key

Source

pub const KEY_KPENTER: Key

Source

pub const KEY_RIGHTCTRL: Key

Source

pub const KEY_KPSLASH: Key

Source

pub const KEY_SYSRQ: Key

Source

pub const KEY_RIGHTALT: Key

Source

pub const KEY_LINEFEED: Key

Source

pub const KEY_HOME: Key

Source

pub const KEY_UP: Key

Source

pub const KEY_PAGEUP: Key

Source

pub const KEY_LEFT: Key

Source

pub const KEY_RIGHT: Key

Source

pub const KEY_END: Key

Source

pub const KEY_DOWN: Key

Source

pub const KEY_PAGEDOWN: Key

Source

pub const KEY_INSERT: Key

Source

pub const KEY_DELETE: Key

Source

pub const KEY_MACRO: Key

Source

pub const KEY_MUTE: Key

Source

pub const KEY_VOLUMEDOWN: Key

Source

pub const KEY_VOLUMEUP: Key

Source

pub const KEY_POWER: Key

Source

pub const KEY_KPEQUAL: Key

Source

pub const KEY_KPPLUSMINUS: Key

Source

pub const KEY_PAUSE: Key

Source

pub const KEY_SCALE: Key

Source

pub const KEY_KPCOMMA: Key

Source

pub const KEY_HANGEUL: Key

Source

pub const KEY_HANJA: Key

Source

pub const KEY_YEN: Key

Source

pub const KEY_LEFTMETA: Key

Source

pub const KEY_RIGHTMETA: Key

Source

pub const KEY_COMPOSE: Key

Source

pub const KEY_STOP: Key

Source

pub const KEY_AGAIN: Key

Source

pub const KEY_PROPS: Key

Source

pub const KEY_UNDO: Key

Source

pub const KEY_FRONT: Key

Source

pub const KEY_COPY: Key

Source

pub const KEY_OPEN: Key

Source

pub const KEY_PASTE: Key

Source

pub const KEY_FIND: Key

Source

pub const KEY_CUT: Key

Source

pub const KEY_HELP: Key

Source

pub const KEY_MENU: Key

Source

pub const KEY_CALC: Key

Source

pub const KEY_SETUP: Key

Source

pub const KEY_SLEEP: Key

Source

pub const KEY_WAKEUP: Key

Source

pub const KEY_FILE: Key

Source

pub const KEY_SENDFILE: Key

Source

pub const KEY_DELETEFILE: Key

Source

pub const KEY_XFER: Key

Source

pub const KEY_PROG1: Key

Source

pub const KEY_PROG2: Key

Source

pub const KEY_WWW: Key

Source

pub const KEY_MSDOS: Key

Source

pub const KEY_COFFEE: Key

Source

pub const KEY_DIRECTION: Key

Source

pub const KEY_ROTATE_DISPLAY: Key

Source

pub const KEY_CYCLEWINDOWS: Key

Source

pub const KEY_MAIL: Key

Source

pub const KEY_BOOKMARKS: Key

Source

pub const KEY_COMPUTER: Key

Source

pub const KEY_BACK: Key

Source

pub const KEY_FORWARD: Key

Source

pub const KEY_CLOSECD: Key

Source

pub const KEY_EJECTCD: Key

Source

pub const KEY_EJECTCLOSECD: Key

Source

pub const KEY_NEXTSONG: Key

Source

pub const KEY_PLAYPAUSE: Key

Source

pub const KEY_PREVIOUSSONG: Key

Source

pub const KEY_STOPCD: Key

Source

pub const KEY_RECORD: Key

Source

pub const KEY_REWIND: Key

Source

pub const KEY_PHONE: Key

Source

pub const KEY_ISO: Key

Source

pub const KEY_CONFIG: Key

Source

pub const KEY_HOMEPAGE: Key

Source

pub const KEY_REFRESH: Key

Source

pub const KEY_EXIT: Key

Source

pub const KEY_MOVE: Key

Source

pub const KEY_EDIT: Key

Source

pub const KEY_SCROLLUP: Key

Source

pub const KEY_SCROLLDOWN: Key

Source

pub const KEY_KPLEFTPAREN: Key

Source

pub const KEY_KPRIGHTPAREN: Key

Source

pub const KEY_NEW: Key

Source

pub const KEY_REDO: Key

Source

pub const KEY_F13: Key

Source

pub const KEY_F14: Key

Source

pub const KEY_F15: Key

Source

pub const KEY_F16: Key

Source

pub const KEY_F17: Key

Source

pub const KEY_F18: Key

Source

pub const KEY_F19: Key

Source

pub const KEY_F20: Key

Source

pub const KEY_F21: Key

Source

pub const KEY_F22: Key

Source

pub const KEY_F23: Key

Source

pub const KEY_F24: Key

Source

pub const KEY_PLAYCD: Key

Source

pub const KEY_PAUSECD: Key

Source

pub const KEY_PROG3: Key

Source

pub const KEY_PROG4: Key

Source

pub const KEY_DASHBOARD: Key

Source

pub const KEY_SUSPEND: Key

Source

pub const KEY_CLOSE: Key

Source

pub const KEY_PLAY: Key

Source

pub const KEY_FASTFORWARD: Key

Source

pub const KEY_BASSBOOST: Key

Source

pub const KEY_PRINT: Key

Source

pub const KEY_HP: Key

Source

pub const KEY_CAMERA: Key

Source

pub const KEY_SOUND: Key

Source

pub const KEY_QUESTION: Key

Source

pub const KEY_EMAIL: Key

Source

pub const KEY_CHAT: Key

Source

pub const KEY_CONNECT: Key

Source

pub const KEY_FINANCE: Key

Source

pub const KEY_SPORT: Key

Source

pub const KEY_SHOP: Key

Source

pub const KEY_ALTERASE: Key

Source

pub const KEY_CANCEL: Key

Source

pub const KEY_BRIGHTNESSDOWN: Key

Source

pub const KEY_BRIGHTNESSUP: Key

Source

pub const KEY_MEDIA: Key

Source

pub const KEY_SWITCHVIDEOMODE: Key

Source

pub const KEY_KBDILLUMTOGGLE: Key

Source

pub const KEY_KBDILLUMDOWN: Key

Source

pub const KEY_KBDILLUMUP: Key

Source

pub const KEY_SEND: Key

Source

pub const KEY_REPLY: Key

Source

pub const KEY_FORWARDMAIL: Key

Source

pub const KEY_SAVE: Key

Source

pub const KEY_DOCUMENTS: Key

Source

pub const KEY_BATTERY: Key

Source

pub const KEY_BLUETOOTH: Key

Source

pub const KEY_WLAN: Key

Source

pub const KEY_UWB: Key

Source

pub const KEY_UNKNOWN: Key

Source

pub const KEY_VIDEO_NEXT: Key

Source

pub const KEY_VIDEO_PREV: Key

Source

pub const KEY_BRIGHTNESS_CYCLE: Key

Source

pub const KEY_BRIGHTNESS_AUTO: Key

Source

pub const KEY_DISPLAY_OFF: Key

Source

pub const KEY_WWAN: Key

Source

pub const KEY_RFKILL: Key

Source

pub const KEY_MICMUTE: Key

Source

pub const BTN_0: Key

Source

pub const BTN_1: Key

Source

pub const BTN_2: Key

Source

pub const BTN_3: Key

Source

pub const BTN_4: Key

Source

pub const BTN_5: Key

Source

pub const BTN_6: Key

Source

pub const BTN_7: Key

Source

pub const BTN_8: Key

Source

pub const BTN_9: Key

Source

pub const BTN_LEFT: Key

Source

pub const BTN_RIGHT: Key

Source

pub const BTN_MIDDLE: Key

Source

pub const BTN_SIDE: Key

Source

pub const BTN_EXTRA: Key

Source

pub const BTN_FORWARD: Key

Source

pub const BTN_BACK: Key

Source

pub const BTN_TASK: Key

Source

pub const BTN_TRIGGER: Key

Source

pub const BTN_THUMB: Key

Source

pub const BTN_THUMB2: Key

Source

pub const BTN_TOP: Key

Source

pub const BTN_TOP2: Key

Source

pub const BTN_PINKIE: Key

Source

pub const BTN_BASE: Key

Source

pub const BTN_BASE2: Key

Source

pub const BTN_BASE3: Key

Source

pub const BTN_BASE4: Key

Source

pub const BTN_BASE5: Key

Source

pub const BTN_BASE6: Key

Source

pub const BTN_DEAD: Key

Source

pub const BTN_SOUTH: Key

Source

pub const BTN_EAST: Key

Source

pub const BTN_C: Key

Source

pub const BTN_NORTH: Key

Source

pub const BTN_WEST: Key

Source

pub const BTN_Z: Key

Source

pub const BTN_TL: Key

Source

pub const BTN_TR: Key

Source

pub const BTN_TL2: Key

Source

pub const BTN_TR2: Key

Source

pub const BTN_SELECT: Key

Source

pub const BTN_START: Key

Source

pub const BTN_MODE: Key

Source

pub const BTN_THUMBL: Key

Source

pub const BTN_THUMBR: Key

Source

pub const BTN_TOOL_PEN: Key

Source

pub const BTN_TOOL_RUBBER: Key

Source

pub const BTN_TOOL_BRUSH: Key

Source

pub const BTN_TOOL_PENCIL: Key

Source

pub const BTN_TOOL_AIRBRUSH: Key

Source

pub const BTN_TOOL_FINGER: Key

Source

pub const BTN_TOOL_MOUSE: Key

Source

pub const BTN_TOOL_LENS: Key

Source

pub const BTN_TOOL_QUINTTAP: Key

Source

pub const BTN_TOUCH: Key

Source

pub const BTN_STYLUS: Key

Source

pub const BTN_STYLUS2: Key

Source

pub const BTN_TOOL_DOUBLETAP: Key

Source

pub const BTN_TOOL_TRIPLETAP: Key

Source

pub const BTN_TOOL_QUADTAP: Key

Source

pub const BTN_GEAR_DOWN: Key

Source

pub const BTN_GEAR_UP: Key

Source

pub const KEY_OK: Key

Source

pub const KEY_SELECT: Key

Source

pub const KEY_GOTO: Key

Source

pub const KEY_CLEAR: Key

Source

pub const KEY_POWER2: Key

Source

pub const KEY_OPTION: Key

Source

pub const KEY_INFO: Key

Source

pub const KEY_TIME: Key

Source

pub const KEY_VENDOR: Key

Source

pub const KEY_ARCHIVE: Key

Source

pub const KEY_PROGRAM: Key

Source

pub const KEY_CHANNEL: Key

Source

pub const KEY_FAVORITES: Key

Source

pub const KEY_EPG: Key

Source

pub const KEY_PVR: Key

Source

pub const KEY_MHP: Key

Source

pub const KEY_LANGUAGE: Key

Source

pub const KEY_TITLE: Key

Source

pub const KEY_SUBTITLE: Key

Source

pub const KEY_ANGLE: Key

Source

pub const KEY_ZOOM: Key

Source

pub const KEY_FULL_SCREEN: Key

Source

pub const KEY_MODE: Key

Source

pub const KEY_KEYBOARD: Key

Source

pub const KEY_SCREEN: Key

Source

pub const KEY_PC: Key

Source

pub const KEY_TV: Key

Source

pub const KEY_TV2: Key

Source

pub const KEY_VCR: Key

Source

pub const KEY_VCR2: Key

Source

pub const KEY_SAT: Key

Source

pub const KEY_SAT2: Key

Source

pub const KEY_CD: Key

Source

pub const KEY_TAPE: Key

Source

pub const KEY_RADIO: Key

Source

pub const KEY_TUNER: Key

Source

pub const KEY_PLAYER: Key

Source

pub const KEY_TEXT: Key

Source

pub const KEY_DVD: Key

Source

pub const KEY_AUX: Key

Source

pub const KEY_MP3: Key

Source

pub const KEY_AUDIO: Key

Source

pub const KEY_VIDEO: Key

Source

pub const KEY_DIRECTORY: Key

Source

pub const KEY_LIST: Key

Source

pub const KEY_MEMO: Key

Source

pub const KEY_CALENDAR: Key

Source

pub const KEY_RED: Key

Source

pub const KEY_GREEN: Key

Source

pub const KEY_YELLOW: Key

Source

pub const KEY_BLUE: Key

Source

pub const KEY_CHANNELUP: Key

Source

pub const KEY_CHANNELDOWN: Key

Source

pub const KEY_FIRST: Key

Source

pub const KEY_LAST: Key

Source

pub const KEY_AB: Key

Source

pub const KEY_NEXT: Key

Source

pub const KEY_RESTART: Key

Source

pub const KEY_SLOW: Key

Source

pub const KEY_SHUFFLE: Key

Source

pub const KEY_BREAK: Key

Source

pub const KEY_PREVIOUS: Key

Source

pub const KEY_DIGITS: Key

Source

pub const KEY_TEEN: Key

Source

pub const KEY_TWEN: Key

Source

pub const KEY_VIDEOPHONE: Key

Source

pub const KEY_GAMES: Key

Source

pub const KEY_ZOOMIN: Key

Source

pub const KEY_ZOOMOUT: Key

Source

pub const KEY_ZOOMRESET: Key

Source

pub const KEY_WORDPROCESSOR: Key

Source

pub const KEY_EDITOR: Key

Source

pub const KEY_SPREADSHEET: Key

Source

pub const KEY_GRAPHICSEDITOR: Key

Source

pub const KEY_PRESENTATION: Key

Source

pub const KEY_DATABASE: Key

Source

pub const KEY_NEWS: Key

Source

pub const KEY_VOICEMAIL: Key

Source

pub const KEY_ADDRESSBOOK: Key

Source

pub const KEY_MESSENGER: Key

Source

pub const KEY_DISPLAYTOGGLE: Key

Source

pub const KEY_SPELLCHECK: Key

Source

pub const KEY_LOGOFF: Key

Source

pub const KEY_DOLLAR: Key

Source

pub const KEY_EURO: Key

Source

pub const KEY_FRAMEBACK: Key

Source

pub const KEY_FRAMEFORWARD: Key

Source

pub const KEY_CONTEXT_MENU: Key

Source

pub const KEY_MEDIA_REPEAT: Key

Source

pub const KEY_10CHANNELSUP: Key

Source

pub const KEY_10CHANNELSDOWN: Key

Source

pub const KEY_IMAGES: Key

Source

pub const KEY_DEL_EOL: Key

Source

pub const KEY_DEL_EOS: Key

Source

pub const KEY_INS_LINE: Key

Source

pub const KEY_DEL_LINE: Key

Source

pub const KEY_FN: Key

Source

pub const KEY_FN_ESC: Key

Source

pub const KEY_FN_F1: Key

Source

pub const KEY_FN_F2: Key

Source

pub const KEY_FN_F3: Key

Source

pub const KEY_FN_F4: Key

Source

pub const KEY_FN_F5: Key

Source

pub const KEY_FN_F6: Key

Source

pub const KEY_FN_F7: Key

Source

pub const KEY_FN_F8: Key

Source

pub const KEY_FN_F9: Key

Source

pub const KEY_FN_F10: Key

Source

pub const KEY_FN_F11: Key

Source

pub const KEY_FN_F12: Key

Source

pub const KEY_FN_1: Key

Source

pub const KEY_FN_2: Key

Source

pub const KEY_FN_D: Key

Source

pub const KEY_FN_E: Key

Source

pub const KEY_FN_F: Key

Source

pub const KEY_FN_S: Key

Source

pub const KEY_FN_B: Key

Source

pub const KEY_BRL_DOT1: Key

Source

pub const KEY_BRL_DOT2: Key

Source

pub const KEY_BRL_DOT3: Key

Source

pub const KEY_BRL_DOT4: Key

Source

pub const KEY_BRL_DOT5: Key

Source

pub const KEY_BRL_DOT6: Key

Source

pub const KEY_BRL_DOT7: Key

Source

pub const KEY_BRL_DOT8: Key

Source

pub const KEY_BRL_DOT9: Key

Source

pub const KEY_BRL_DOT10: Key

Source

pub const KEY_NUMERIC_0: Key

Source

pub const KEY_NUMERIC_1: Key

Source

pub const KEY_NUMERIC_2: Key

Source

pub const KEY_NUMERIC_3: Key

Source

pub const KEY_NUMERIC_4: Key

Source

pub const KEY_NUMERIC_5: Key

Source

pub const KEY_NUMERIC_6: Key

Source

pub const KEY_NUMERIC_7: Key

Source

pub const KEY_NUMERIC_8: Key

Source

pub const KEY_NUMERIC_9: Key

Source

pub const KEY_NUMERIC_STAR: Key

Source

pub const KEY_NUMERIC_POUND: Key

Source

pub const KEY_NUMERIC_A: Key

Source

pub const KEY_NUMERIC_B: Key

Source

pub const KEY_NUMERIC_C: Key

Source

pub const KEY_NUMERIC_D: Key

Source

pub const KEY_CAMERA_FOCUS: Key

Source

pub const KEY_WPS_BUTTON: Key

Source

pub const KEY_TOUCHPAD_TOGGLE: Key

Source

pub const KEY_TOUCHPAD_ON: Key

Source

pub const KEY_TOUCHPAD_OFF: Key

Source

pub const KEY_CAMERA_ZOOMIN: Key

Source

pub const KEY_CAMERA_ZOOMOUT: Key

Source

pub const KEY_CAMERA_UP: Key

Source

pub const KEY_CAMERA_DOWN: Key

Source

pub const KEY_CAMERA_LEFT: Key

Source

pub const KEY_CAMERA_RIGHT: Key

Source

pub const KEY_ATTENDANT_ON: Key

Source

pub const KEY_ATTENDANT_OFF: Key

Source

pub const KEY_ATTENDANT_TOGGLE: Key

Source

pub const KEY_LIGHTS_TOGGLE: Key

Source

pub const BTN_DPAD_UP: Key

Source

pub const BTN_DPAD_DOWN: Key

Source

pub const BTN_DPAD_LEFT: Key

Source

pub const BTN_DPAD_RIGHT: Key

Source

pub const KEY_ALS_TOGGLE: Key

Source

pub const KEY_BUTTONCONFIG: Key

Source

pub const KEY_TASKMANAGER: Key

Source

pub const KEY_JOURNAL: Key

Source

pub const KEY_CONTROLPANEL: Key

Source

pub const KEY_APPSELECT: Key

Source

pub const KEY_SCREENSAVER: Key

Source

pub const KEY_VOICECOMMAND: Key

Source

pub const KEY_ASSISTANT: Key

Source

pub const KEY_KBD_LAYOUT_NEXT: Key

Source

pub const KEY_BRIGHTNESS_MIN: Key

Source

pub const KEY_BRIGHTNESS_MAX: Key

Source

pub const KEY_KBDINPUTASSIST_PREV: Key

Source

pub const KEY_KBDINPUTASSIST_NEXT: Key

Source

pub const KEY_KBDINPUTASSIST_PREVGROUP: Key

Source

pub const KEY_KBDINPUTASSIST_NEXTGROUP: Key

Source

pub const KEY_KBDINPUTASSIST_ACCEPT: Key

Source

pub const KEY_KBDINPUTASSIST_CANCEL: Key

Source

pub const KEY_RIGHT_UP: Key

Source

pub const KEY_RIGHT_DOWN: Key

Source

pub const KEY_LEFT_UP: Key

Source

pub const KEY_LEFT_DOWN: Key

Source

pub const KEY_ROOT_MENU: Key

Source

pub const KEY_MEDIA_TOP_MENU: Key

Source

pub const KEY_NUMERIC_11: Key

Source

pub const KEY_NUMERIC_12: Key

Source

pub const KEY_AUDIO_DESC: Key

Source

pub const KEY_3D_MODE: Key

Source

pub const KEY_NEXT_FAVORITE: Key

Source

pub const KEY_STOP_RECORD: Key

Source

pub const KEY_PAUSE_RECORD: Key

Source

pub const KEY_VOD: Key

Source

pub const KEY_UNMUTE: Key

Source

pub const KEY_FASTREVERSE: Key

Source

pub const KEY_SLOWREVERSE: Key

Source

pub const KEY_DATA: Key

Source

pub const KEY_ONSCREEN_KEYBOARD: Key

Source

pub const KEY_PRIVACY_SCREEN_TOGGLE: Key

Source

pub const KEY_SELECTIVE_SCREENSHOT: Key

Source

pub const BTN_TRIGGER_HAPPY1: Key

Source

pub const BTN_TRIGGER_HAPPY2: Key

Source

pub const BTN_TRIGGER_HAPPY3: Key

Source

pub const BTN_TRIGGER_HAPPY4: Key

Source

pub const BTN_TRIGGER_HAPPY5: Key

Source

pub const BTN_TRIGGER_HAPPY6: Key

Source

pub const BTN_TRIGGER_HAPPY7: Key

Source

pub const BTN_TRIGGER_HAPPY8: Key

Source

pub const BTN_TRIGGER_HAPPY9: Key

Source

pub const BTN_TRIGGER_HAPPY10: Key

Source

pub const BTN_TRIGGER_HAPPY11: Key

Source

pub const BTN_TRIGGER_HAPPY12: Key

Source

pub const BTN_TRIGGER_HAPPY13: Key

Source

pub const BTN_TRIGGER_HAPPY14: Key

Source

pub const BTN_TRIGGER_HAPPY15: Key

Source

pub const BTN_TRIGGER_HAPPY16: Key

Source

pub const BTN_TRIGGER_HAPPY17: Key

Source

pub const BTN_TRIGGER_HAPPY18: Key

Source

pub const BTN_TRIGGER_HAPPY19: Key

Source

pub const BTN_TRIGGER_HAPPY20: Key

Source

pub const BTN_TRIGGER_HAPPY21: Key

Source

pub const BTN_TRIGGER_HAPPY22: Key

Source

pub const BTN_TRIGGER_HAPPY23: Key

Source

pub const BTN_TRIGGER_HAPPY24: Key

Source

pub const BTN_TRIGGER_HAPPY25: Key

Source

pub const BTN_TRIGGER_HAPPY26: Key

Source

pub const BTN_TRIGGER_HAPPY27: Key

Source

pub const BTN_TRIGGER_HAPPY28: Key

Source

pub const BTN_TRIGGER_HAPPY29: Key

Source

pub const BTN_TRIGGER_HAPPY30: Key

Source

pub const BTN_TRIGGER_HAPPY31: Key

Source

pub const BTN_TRIGGER_HAPPY32: Key

Source

pub const BTN_TRIGGER_HAPPY33: Key

Source

pub const BTN_TRIGGER_HAPPY34: Key

Source

pub const BTN_TRIGGER_HAPPY35: Key

Source

pub const BTN_TRIGGER_HAPPY36: Key

Source

pub const BTN_TRIGGER_HAPPY37: Key

Source

pub const BTN_TRIGGER_HAPPY38: Key

Source

pub const BTN_TRIGGER_HAPPY39: Key

Source

pub const BTN_TRIGGER_HAPPY40: Key

Trait Implementations§

Source§

impl Clone for Key

Source§

fn clone(&self) -> Key

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Key

Source§

impl Debug for Key

Source§

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

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

impl Eq for Key

Source§

impl EvdevEnum for Key

Source§

impl FromStr for Key

Source§

type Err = EnumParseError

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

fn from_str(s: &str) -> Result<Key, <Key as FromStr>::Err>

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

impl Hash for Key

Source§

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

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 Key

Source§

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

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

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

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

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for Key

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialOrd for Key

Source§

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

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 StructuralPartialEq for Key

Auto Trait Implementations§

§

impl Freeze for Key

§

impl RefUnwindSafe for Key

§

impl Send for Key

§

impl Sync for Key

§

impl Unpin for Key

§

impl UnsafeUnpin for Key

§

impl UnwindSafe for Key

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.