#[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
sourceimpl Key
impl Key
pub const KEY_RESERVED: Self = _
pub const KEY_ESC: Self = _
pub const KEY_1: Self = _
pub const KEY_2: Self = _
pub const KEY_3: Self = _
pub const KEY_4: Self = _
pub const KEY_5: Self = _
pub const KEY_6: Self = _
pub const KEY_7: Self = _
pub const KEY_8: Self = _
pub const KEY_9: Self = _
pub const KEY_0: Self = _
pub const KEY_MINUS: Self = _
pub const KEY_EQUAL: Self = _
pub const KEY_BACKSPACE: Self = _
pub const KEY_TAB: Self = _
pub const KEY_Q: Self = _
pub const KEY_W: Self = _
pub const KEY_E: Self = _
pub const KEY_R: Self = _
pub const KEY_T: Self = _
pub const KEY_Y: Self = _
pub const KEY_U: Self = _
pub const KEY_I: Self = _
pub const KEY_O: Self = _
pub const KEY_P: Self = _
pub const KEY_LEFTBRACE: Self = _
pub const KEY_RIGHTBRACE: Self = _
pub const KEY_ENTER: Self = _
pub const KEY_LEFTCTRL: Self = _
pub const KEY_A: Self = _
pub const KEY_S: Self = _
pub const KEY_D: Self = _
pub const KEY_F: Self = _
pub const KEY_G: Self = _
pub const KEY_H: Self = _
pub const KEY_J: Self = _
pub const KEY_K: Self = _
pub const KEY_L: Self = _
pub const KEY_SEMICOLON: Self = _
pub const KEY_APOSTROPHE: Self = _
pub const KEY_GRAVE: Self = _
pub const KEY_LEFTSHIFT: Self = _
pub const KEY_BACKSLASH: Self = _
pub const KEY_Z: Self = _
pub const KEY_X: Self = _
pub const KEY_C: Self = _
pub const KEY_V: Self = _
pub const KEY_B: Self = _
pub const KEY_N: Self = _
pub const KEY_M: Self = _
pub const KEY_COMMA: Self = _
pub const KEY_DOT: Self = _
pub const KEY_SLASH: Self = _
pub const KEY_RIGHTSHIFT: Self = _
pub const KEY_KPASTERISK: Self = _
pub const KEY_LEFTALT: Self = _
pub const KEY_SPACE: Self = _
pub const KEY_CAPSLOCK: Self = _
pub const KEY_F1: Self = _
pub const KEY_F2: Self = _
pub const KEY_F3: Self = _
pub const KEY_F4: Self = _
pub const KEY_F5: Self = _
pub const KEY_F6: Self = _
pub const KEY_F7: Self = _
pub const KEY_F8: Self = _
pub const KEY_F9: Self = _
pub const KEY_F10: Self = _
pub const KEY_NUMLOCK: Self = _
pub const KEY_SCROLLLOCK: Self = _
pub const KEY_KP7: Self = _
pub const KEY_KP8: Self = _
pub const KEY_KP9: Self = _
pub const KEY_KPMINUS: Self = _
pub const KEY_KP4: Self = _
pub const KEY_KP5: Self = _
pub const KEY_KP6: Self = _
pub const KEY_KPPLUS: Self = _
pub const KEY_KP1: Self = _
pub const KEY_KP2: Self = _
pub const KEY_KP3: Self = _
pub const KEY_KP0: Self = _
pub const KEY_KPDOT: Self = _
pub const KEY_ZENKAKUHANKAKU: Self = _
pub const KEY_102ND: Self = _
pub const KEY_F11: Self = _
pub const KEY_F12: Self = _
pub const KEY_RO: Self = _
pub const KEY_KATAKANA: Self = _
pub const KEY_HIRAGANA: Self = _
pub const KEY_HENKAN: Self = _
pub const KEY_KATAKANAHIRAGANA: Self = _
pub const KEY_MUHENKAN: Self = _
pub const KEY_KPJPCOMMA: Self = _
pub const KEY_KPENTER: Self = _
pub const KEY_RIGHTCTRL: Self = _
pub const KEY_KPSLASH: Self = _
pub const KEY_SYSRQ: Self = _
pub const KEY_RIGHTALT: Self = _
pub const KEY_LINEFEED: Self = _
pub const KEY_HOME: Self = _
pub const KEY_UP: Self = _
pub const KEY_PAGEUP: Self = _
pub const KEY_LEFT: Self = _
pub const KEY_RIGHT: Self = _
pub const KEY_END: Self = _
pub const KEY_DOWN: Self = _
pub const KEY_PAGEDOWN: Self = _
pub const KEY_INSERT: Self = _
pub const KEY_DELETE: Self = _
pub const KEY_MACRO: Self = _
pub const KEY_MUTE: Self = _
pub const KEY_VOLUMEDOWN: Self = _
pub const KEY_VOLUMEUP: Self = _
pub const KEY_POWER: Self = _
pub const KEY_KPEQUAL: Self = _
pub const KEY_KPPLUSMINUS: Self = _
pub const KEY_PAUSE: Self = _
pub const KEY_SCALE: Self = _
pub const KEY_KPCOMMA: Self = _
pub const KEY_HANGEUL: Self = _
pub const KEY_HANJA: Self = _
pub const KEY_YEN: Self = _
pub const KEY_LEFTMETA: Self = _
pub const KEY_RIGHTMETA: Self = _
pub const KEY_COMPOSE: Self = _
pub const KEY_STOP: Self = _
pub const KEY_AGAIN: Self = _
pub const KEY_PROPS: Self = _
pub const KEY_UNDO: Self = _
pub const KEY_FRONT: Self = _
pub const KEY_COPY: Self = _
pub const KEY_OPEN: Self = _
pub const KEY_PASTE: Self = _
pub const KEY_FIND: Self = _
pub const KEY_CUT: Self = _
pub const KEY_HELP: Self = _
pub const KEY_MENU: Self = _
pub const KEY_CALC: Self = _
pub const KEY_SETUP: Self = _
pub const KEY_SLEEP: Self = _
pub const KEY_WAKEUP: Self = _
pub const KEY_FILE: Self = _
pub const KEY_SENDFILE: Self = _
pub const KEY_DELETEFILE: Self = _
pub const KEY_XFER: Self = _
pub const KEY_PROG1: Self = _
pub const KEY_PROG2: Self = _
pub const KEY_WWW: Self = _
pub const KEY_MSDOS: Self = _
pub const KEY_COFFEE: Self = _
pub const KEY_DIRECTION: Self = _
pub const KEY_ROTATE_DISPLAY: Self = _
pub const KEY_CYCLEWINDOWS: Self = _
pub const KEY_MAIL: Self = _
pub const KEY_BOOKMARKS: Self = _
pub const KEY_COMPUTER: Self = _
pub const KEY_BACK: Self = _
pub const KEY_FORWARD: Self = _
pub const KEY_CLOSECD: Self = _
pub const KEY_EJECTCD: Self = _
pub const KEY_EJECTCLOSECD: Self = _
pub const KEY_NEXTSONG: Self = _
pub const KEY_PLAYPAUSE: Self = _
pub const KEY_PREVIOUSSONG: Self = _
pub const KEY_STOPCD: Self = _
pub const KEY_RECORD: Self = _
pub const KEY_REWIND: Self = _
pub const KEY_PHONE: Self = _
pub const KEY_ISO: Self = _
pub const KEY_CONFIG: Self = _
pub const KEY_HOMEPAGE: Self = _
pub const KEY_REFRESH: Self = _
pub const KEY_EXIT: Self = _
pub const KEY_MOVE: Self = _
pub const KEY_EDIT: Self = _
pub const KEY_SCROLLUP: Self = _
pub const KEY_SCROLLDOWN: Self = _
pub const KEY_KPLEFTPAREN: Self = _
pub const KEY_KPRIGHTPAREN: Self = _
pub const KEY_NEW: Self = _
pub const KEY_REDO: Self = _
pub const KEY_F13: Self = _
pub const KEY_F14: Self = _
pub const KEY_F15: Self = _
pub const KEY_F16: Self = _
pub const KEY_F17: Self = _
pub const KEY_F18: Self = _
pub const KEY_F19: Self = _
pub const KEY_F20: Self = _
pub const KEY_F21: Self = _
pub const KEY_F22: Self = _
pub const KEY_F23: Self = _
pub const KEY_F24: Self = _
pub const KEY_PLAYCD: Self = _
pub const KEY_PAUSECD: Self = _
pub const KEY_PROG3: Self = _
pub const KEY_PROG4: Self = _
pub const KEY_DASHBOARD: Self = _
pub const KEY_SUSPEND: Self = _
pub const KEY_CLOSE: Self = _
pub const KEY_PLAY: Self = _
pub const KEY_FASTFORWARD: Self = _
pub const KEY_BASSBOOST: Self = _
pub const KEY_PRINT: Self = _
pub const KEY_HP: Self = _
pub const KEY_CAMERA: Self = _
pub const KEY_SOUND: Self = _
pub const KEY_QUESTION: Self = _
pub const KEY_EMAIL: Self = _
pub const KEY_CHAT: Self = _
pub const KEY_SEARCH: Self = _
pub const KEY_CONNECT: Self = _
pub const KEY_FINANCE: Self = _
pub const KEY_SPORT: Self = _
pub const KEY_SHOP: Self = _
pub const KEY_ALTERASE: Self = _
pub const KEY_CANCEL: Self = _
pub const KEY_BRIGHTNESSDOWN: Self = _
pub const KEY_BRIGHTNESSUP: Self = _
pub const KEY_MEDIA: Self = _
pub const KEY_SWITCHVIDEOMODE: Self = _
pub const KEY_KBDILLUMTOGGLE: Self = _
pub const KEY_KBDILLUMDOWN: Self = _
pub const KEY_KBDILLUMUP: Self = _
pub const KEY_SEND: Self = _
pub const KEY_REPLY: Self = _
pub const KEY_FORWARDMAIL: Self = _
pub const KEY_SAVE: Self = _
pub const KEY_DOCUMENTS: Self = _
pub const KEY_BATTERY: Self = _
pub const KEY_BLUETOOTH: Self = _
pub const KEY_WLAN: Self = _
pub const KEY_UWB: Self = _
pub const KEY_UNKNOWN: Self = _
pub const KEY_VIDEO_NEXT: Self = _
pub const KEY_VIDEO_PREV: Self = _
pub const KEY_BRIGHTNESS_CYCLE: Self = _
pub const KEY_BRIGHTNESS_AUTO: Self = _
pub const KEY_DISPLAY_OFF: Self = _
pub const KEY_WWAN: Self = _
pub const KEY_RFKILL: Self = _
pub const KEY_MICMUTE: Self = _
pub const BTN_0: Self = _
pub const BTN_1: Self = _
pub const BTN_2: Self = _
pub const BTN_3: Self = _
pub const BTN_4: Self = _
pub const BTN_5: Self = _
pub const BTN_6: Self = _
pub const BTN_7: Self = _
pub const BTN_8: Self = _
pub const BTN_9: Self = _
pub const BTN_LEFT: Self = _
pub const BTN_RIGHT: Self = _
pub const BTN_MIDDLE: Self = _
pub const BTN_SIDE: Self = _
pub const BTN_EXTRA: Self = _
pub const BTN_FORWARD: Self = _
pub const BTN_BACK: Self = _
pub const BTN_TASK: Self = _
pub const BTN_TRIGGER: Self = _
pub const BTN_THUMB: Self = _
pub const BTN_THUMB2: Self = _
pub const BTN_TOP: Self = _
pub const BTN_TOP2: Self = _
pub const BTN_PINKIE: Self = _
pub const BTN_BASE: Self = _
pub const BTN_BASE2: Self = _
pub const BTN_BASE3: Self = _
pub const BTN_BASE4: Self = _
pub const BTN_BASE5: Self = _
pub const BTN_BASE6: Self = _
pub const BTN_DEAD: Self = _
pub const BTN_SOUTH: Self = _
pub const BTN_EAST: Self = _
pub const BTN_C: Self = _
pub const BTN_NORTH: Self = _
pub const BTN_WEST: Self = _
pub const BTN_Z: Self = _
pub const BTN_TL: Self = _
pub const BTN_TR: Self = _
pub const BTN_TL2: Self = _
pub const BTN_TR2: Self = _
pub const BTN_SELECT: Self = _
pub const BTN_START: Self = _
pub const BTN_MODE: Self = _
pub const BTN_THUMBL: Self = _
pub const BTN_THUMBR: Self = _
pub const BTN_TOOL_PEN: Self = _
pub const BTN_TOOL_RUBBER: Self = _
pub const BTN_TOOL_BRUSH: Self = _
pub const BTN_TOOL_PENCIL: Self = _
pub const BTN_TOOL_AIRBRUSH: Self = _
pub const BTN_TOOL_FINGER: Self = _
pub const BTN_TOOL_MOUSE: Self = _
pub const BTN_TOOL_LENS: Self = _
pub const BTN_TOOL_QUINTTAP: Self = _
pub const BTN_TOUCH: Self = _
pub const BTN_STYLUS: Self = _
pub const BTN_STYLUS2: Self = _
pub const BTN_TOOL_DOUBLETAP: Self = _
pub const BTN_TOOL_TRIPLETAP: Self = _
pub const BTN_TOOL_QUADTAP: Self = _
pub const BTN_GEAR_DOWN: Self = _
pub const BTN_GEAR_UP: Self = _
pub const KEY_OK: Self = _
pub const KEY_SELECT: Self = _
pub const KEY_GOTO: Self = _
pub const KEY_CLEAR: Self = _
pub const KEY_POWER2: Self = _
pub const KEY_OPTION: Self = _
pub const KEY_INFO: Self = _
pub const KEY_TIME: Self = _
pub const KEY_VENDOR: Self = _
pub const KEY_ARCHIVE: Self = _
pub const KEY_PROGRAM: Self = _
pub const KEY_CHANNEL: Self = _
pub const KEY_FAVORITES: Self = _
pub const KEY_EPG: Self = _
pub const KEY_PVR: Self = _
pub const KEY_MHP: Self = _
pub const KEY_LANGUAGE: Self = _
pub const KEY_TITLE: Self = _
pub const KEY_SUBTITLE: Self = _
pub const KEY_ANGLE: Self = _
pub const KEY_ZOOM: Self = _
pub const KEY_FULL_SCREEN: Self = _
pub const KEY_MODE: Self = _
pub const KEY_KEYBOARD: Self = _
pub const KEY_SCREEN: Self = _
pub const KEY_PC: Self = _
pub const KEY_TV: Self = _
pub const KEY_TV2: Self = _
pub const KEY_VCR: Self = _
pub const KEY_VCR2: Self = _
pub const KEY_SAT: Self = _
pub const KEY_SAT2: Self = _
pub const KEY_CD: Self = _
pub const KEY_TAPE: Self = _
pub const KEY_RADIO: Self = _
pub const KEY_TUNER: Self = _
pub const KEY_PLAYER: Self = _
pub const KEY_TEXT: Self = _
pub const KEY_DVD: Self = _
pub const KEY_AUX: Self = _
pub const KEY_MP3: Self = _
pub const KEY_AUDIO: Self = _
pub const KEY_VIDEO: Self = _
pub const KEY_DIRECTORY: Self = _
pub const KEY_LIST: Self = _
pub const KEY_MEMO: Self = _
pub const KEY_CALENDAR: Self = _
pub const KEY_RED: Self = _
pub const KEY_GREEN: Self = _
pub const KEY_YELLOW: Self = _
pub const KEY_BLUE: Self = _
pub const KEY_CHANNELUP: Self = _
pub const KEY_CHANNELDOWN: Self = _
pub const KEY_FIRST: Self = _
pub const KEY_LAST: Self = _
pub const KEY_AB: Self = _
pub const KEY_NEXT: Self = _
pub const KEY_RESTART: Self = _
pub const KEY_SLOW: Self = _
pub const KEY_SHUFFLE: Self = _
pub const KEY_BREAK: Self = _
pub const KEY_PREVIOUS: Self = _
pub const KEY_DIGITS: Self = _
pub const KEY_TEEN: Self = _
pub const KEY_TWEN: Self = _
pub const KEY_VIDEOPHONE: Self = _
pub const KEY_GAMES: Self = _
pub const KEY_ZOOMIN: Self = _
pub const KEY_ZOOMOUT: Self = _
pub const KEY_ZOOMRESET: Self = _
pub const KEY_WORDPROCESSOR: Self = _
pub const KEY_EDITOR: Self = _
pub const KEY_SPREADSHEET: Self = _
pub const KEY_GRAPHICSEDITOR: Self = _
pub const KEY_PRESENTATION: Self = _
pub const KEY_DATABASE: Self = _
pub const KEY_NEWS: Self = _
pub const KEY_VOICEMAIL: Self = _
pub const KEY_ADDRESSBOOK: Self = _
pub const KEY_MESSENGER: Self = _
pub const KEY_DISPLAYTOGGLE: Self = _
pub const KEY_SPELLCHECK: Self = _
pub const KEY_LOGOFF: Self = _
pub const KEY_DOLLAR: Self = _
pub const KEY_EURO: Self = _
pub const KEY_FRAMEBACK: Self = _
pub const KEY_FRAMEFORWARD: Self = _
pub const KEY_CONTEXT_MENU: Self = _
pub const KEY_MEDIA_REPEAT: Self = _
pub const KEY_10CHANNELSUP: Self = _
pub const KEY_10CHANNELSDOWN: Self = _
pub const KEY_IMAGES: Self = _
pub const KEY_DEL_EOL: Self = _
pub const KEY_DEL_EOS: Self = _
pub const KEY_INS_LINE: Self = _
pub const KEY_DEL_LINE: Self = _
pub const KEY_FN: Self = _
pub const KEY_FN_ESC: Self = _
pub const KEY_FN_F1: Self = _
pub const KEY_FN_F2: Self = _
pub const KEY_FN_F3: Self = _
pub const KEY_FN_F4: Self = _
pub const KEY_FN_F5: Self = _
pub const KEY_FN_F6: Self = _
pub const KEY_FN_F7: Self = _
pub const KEY_FN_F8: Self = _
pub const KEY_FN_F9: Self = _
pub const KEY_FN_F10: Self = _
pub const KEY_FN_F11: Self = _
pub const KEY_FN_F12: Self = _
pub const KEY_FN_1: Self = _
pub const KEY_FN_2: Self = _
pub const KEY_FN_D: Self = _
pub const KEY_FN_E: Self = _
pub const KEY_FN_F: Self = _
pub const KEY_FN_S: Self = _
pub const KEY_FN_B: Self = _
pub const KEY_BRL_DOT1: Self = _
pub const KEY_BRL_DOT2: Self = _
pub const KEY_BRL_DOT3: Self = _
pub const KEY_BRL_DOT4: Self = _
pub const KEY_BRL_DOT5: Self = _
pub const KEY_BRL_DOT6: Self = _
pub const KEY_BRL_DOT7: Self = _
pub const KEY_BRL_DOT8: Self = _
pub const KEY_BRL_DOT9: Self = _
pub const KEY_BRL_DOT10: Self = _
pub const KEY_NUMERIC_0: Self = _
pub const KEY_NUMERIC_1: Self = _
pub const KEY_NUMERIC_2: Self = _
pub const KEY_NUMERIC_3: Self = _
pub const KEY_NUMERIC_4: Self = _
pub const KEY_NUMERIC_5: Self = _
pub const KEY_NUMERIC_6: Self = _
pub const KEY_NUMERIC_7: Self = _
pub const KEY_NUMERIC_8: Self = _
pub const KEY_NUMERIC_9: Self = _
pub const KEY_NUMERIC_STAR: Self = _
pub const KEY_NUMERIC_POUND: Self = _
pub const KEY_NUMERIC_A: Self = _
pub const KEY_NUMERIC_B: Self = _
pub const KEY_NUMERIC_C: Self = _
pub const KEY_NUMERIC_D: Self = _
pub const KEY_CAMERA_FOCUS: Self = _
pub const KEY_WPS_BUTTON: Self = _
pub const KEY_TOUCHPAD_TOGGLE: Self = _
pub const KEY_TOUCHPAD_ON: Self = _
pub const KEY_TOUCHPAD_OFF: Self = _
pub const KEY_CAMERA_ZOOMIN: Self = _
pub const KEY_CAMERA_ZOOMOUT: Self = _
pub const KEY_CAMERA_UP: Self = _
pub const KEY_CAMERA_DOWN: Self = _
pub const KEY_CAMERA_LEFT: Self = _
pub const KEY_CAMERA_RIGHT: Self = _
pub const KEY_ATTENDANT_ON: Self = _
pub const KEY_ATTENDANT_OFF: Self = _
pub const KEY_ATTENDANT_TOGGLE: Self = _
pub const KEY_LIGHTS_TOGGLE: Self = _
pub const BTN_DPAD_UP: Self = _
pub const BTN_DPAD_DOWN: Self = _
pub const BTN_DPAD_LEFT: Self = _
pub const BTN_DPAD_RIGHT: Self = _
pub const KEY_ALS_TOGGLE: Self = _
pub const KEY_BUTTONCONFIG: Self = _
pub const KEY_TASKMANAGER: Self = _
pub const KEY_JOURNAL: Self = _
pub const KEY_CONTROLPANEL: Self = _
pub const KEY_APPSELECT: Self = _
pub const KEY_SCREENSAVER: Self = _
pub const KEY_VOICECOMMAND: Self = _
pub const KEY_ASSISTANT: Self = _
pub const KEY_KBD_LAYOUT_NEXT: Self = _
pub const KEY_BRIGHTNESS_MIN: Self = _
pub const KEY_BRIGHTNESS_MAX: Self = _
pub const KEY_KBDINPUTASSIST_PREV: Self = _
pub const KEY_KBDINPUTASSIST_NEXT: Self = _
pub const KEY_KBDINPUTASSIST_PREVGROUP: Self = _
pub const KEY_KBDINPUTASSIST_NEXTGROUP: Self = _
pub const KEY_KBDINPUTASSIST_ACCEPT: Self = _
pub const KEY_KBDINPUTASSIST_CANCEL: Self = _
pub const KEY_RIGHT_UP: Self = _
pub const KEY_RIGHT_DOWN: Self = _
pub const KEY_LEFT_UP: Self = _
pub const KEY_LEFT_DOWN: Self = _
pub const KEY_ROOT_MENU: Self = _
pub const KEY_MEDIA_TOP_MENU: Self = _
pub const KEY_NUMERIC_11: Self = _
pub const KEY_NUMERIC_12: Self = _
pub const KEY_AUDIO_DESC: Self = _
pub const KEY_3D_MODE: Self = _
pub const KEY_NEXT_FAVORITE: Self = _
pub const KEY_STOP_RECORD: Self = _
pub const KEY_PAUSE_RECORD: Self = _
pub const KEY_VOD: Self = _
pub const KEY_UNMUTE: Self = _
pub const KEY_FASTREVERSE: Self = _
pub const KEY_SLOWREVERSE: Self = _
pub const KEY_DATA: Self = _
pub const KEY_ONSCREEN_KEYBOARD: Self = _
pub const KEY_PRIVACY_SCREEN_TOGGLE: Self = _
pub const KEY_SELECTIVE_SCREENSHOT: Self = _
pub const BTN_TRIGGER_HAPPY1: Self = _
pub const BTN_TRIGGER_HAPPY2: Self = _
pub const BTN_TRIGGER_HAPPY3: Self = _
pub const BTN_TRIGGER_HAPPY4: Self = _
pub const BTN_TRIGGER_HAPPY5: Self = _
pub const BTN_TRIGGER_HAPPY6: Self = _
pub const BTN_TRIGGER_HAPPY7: Self = _
pub const BTN_TRIGGER_HAPPY8: Self = _
pub const BTN_TRIGGER_HAPPY9: Self = _
pub const BTN_TRIGGER_HAPPY10: Self = _
pub const BTN_TRIGGER_HAPPY11: Self = _
pub const BTN_TRIGGER_HAPPY12: Self = _
pub const BTN_TRIGGER_HAPPY13: Self = _
pub const BTN_TRIGGER_HAPPY14: Self = _
pub const BTN_TRIGGER_HAPPY15: Self = _
pub const BTN_TRIGGER_HAPPY16: Self = _
pub const BTN_TRIGGER_HAPPY17: Self = _
pub const BTN_TRIGGER_HAPPY18: Self = _
pub const BTN_TRIGGER_HAPPY19: Self = _
pub const BTN_TRIGGER_HAPPY20: Self = _
pub const BTN_TRIGGER_HAPPY21: Self = _
pub const BTN_TRIGGER_HAPPY22: Self = _
pub const BTN_TRIGGER_HAPPY23: Self = _
pub const BTN_TRIGGER_HAPPY24: Self = _
pub const BTN_TRIGGER_HAPPY25: Self = _
pub const BTN_TRIGGER_HAPPY26: Self = _
pub const BTN_TRIGGER_HAPPY27: Self = _
pub const BTN_TRIGGER_HAPPY28: Self = _
pub const BTN_TRIGGER_HAPPY29: Self = _
pub const BTN_TRIGGER_HAPPY30: Self = _
pub const BTN_TRIGGER_HAPPY31: Self = _
pub const BTN_TRIGGER_HAPPY32: Self = _
pub const BTN_TRIGGER_HAPPY33: Self = _
pub const BTN_TRIGGER_HAPPY34: Self = _
pub const BTN_TRIGGER_HAPPY35: Self = _
pub const BTN_TRIGGER_HAPPY36: Self = _
pub const BTN_TRIGGER_HAPPY37: Self = _
pub const BTN_TRIGGER_HAPPY38: Self = _
pub const BTN_TRIGGER_HAPPY39: Self = _
pub const BTN_TRIGGER_HAPPY40: Self = _
Trait Implementations
sourceimpl Ord for Key
impl Ord for Key
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Key> for Key
impl PartialOrd<Key> for Key
sourcefn partial_cmp(&self, other: &Key) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Key
impl Eq for Key
impl StructuralEq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FmtForward for T
impl<T> FmtForward for T
fn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted. Read more
fn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted. Read more
fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
Causes self
to use its LowerExp
implementation when
Debug
-formatted. Read more
fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
Causes self
to use its LowerHex
implementation when
Debug
-formatted. Read more
fn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
Causes self
to use its Octal
implementation when Debug
-formatted. Read more
fn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
Causes self
to use its Pointer
implementation when
Debug
-formatted. Read more
fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
Causes self
to use its UpperExp
implementation when
Debug
-formatted. Read more
fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
Causes self
to use its UpperHex
implementation when
Debug
-formatted. Read more
fn fmt_list(self) -> FmtList<Self> where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self> where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
impl<T> Pipe for T where
T: ?Sized,
impl<T> Pipe for T where
T: ?Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
Pipes by value. This is generally the method you want to use. Read more
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
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
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
R: 'a,
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
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R where
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
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
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,
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
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,
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.
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,
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. Read more
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,
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.
impl<T> Tap for T
impl<T> Tap for T
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
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
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
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
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
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
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
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
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self where
Self: Deref<Target = T>,
T: ?Sized,
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
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self where
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
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
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls .tap()
only in debug builds, and is erased in release builds.
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls .tap_mut()
only in debug builds, and is erased in release
builds. Read more
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
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. Read more
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
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. Read more
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
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. Read more
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
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. Read more