#[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
impl KeyCode
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_PICKUP_PHONE: Self
pub const KEY_HANGUP_PHONE: 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§
Source§impl<'de> Deserialize<'de> for KeyCode
Available on crate feature serde
only.
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>,
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 Ord for KeyCode
impl Ord for KeyCode
Source§impl PartialOrd for KeyCode
impl PartialOrd for KeyCode
impl Copy for KeyCode
impl Eq for KeyCode
impl StructuralPartialEq for KeyCode
Auto Trait Implementations§
impl Freeze for KeyCode
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnwindSafe for KeyCode
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.