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