Struct Keycode
pub struct Keycode(/* private fields */);
Available on crate feature
dep_sdl2
only.Implementations§
§impl Keycode
impl Keycode
pub const BACKSPACE: Keycode
pub const TAB: Keycode
pub const RETURN: Keycode
pub const ESCAPE: Keycode
pub const SPACE: Keycode
pub const EXCLAIM: Keycode
pub const QUOTEDBL: Keycode
pub const HASH: Keycode
pub const DOLLAR: Keycode
pub const PERCENT: Keycode
pub const AMPERSAND: Keycode
pub const QUOTE: Keycode
pub const LEFTPAREN: Keycode
pub const RIGHTPAREN: Keycode
pub const ASTERISK: Keycode
pub const PLUS: Keycode
pub const COMMA: Keycode
pub const MINUS: Keycode
pub const PERIOD: Keycode
pub const SLASH: Keycode
pub const NUM_0: Keycode
pub const NUM_1: Keycode
pub const NUM_2: Keycode
pub const NUM_3: Keycode
pub const NUM_4: Keycode
pub const NUM_5: Keycode
pub const NUM_6: Keycode
pub const NUM_7: Keycode
pub const NUM_8: Keycode
pub const NUM_9: Keycode
pub const COLON: Keycode
pub const SEMICOLON: Keycode
pub const LESS: Keycode
pub const EQUALS: Keycode
pub const GREATER: Keycode
pub const QUESTION: Keycode
pub const AT: Keycode
pub const LEFTBRACKET: Keycode
pub const BACKSLASH: Keycode
pub const RIGHTBRACKET: Keycode
pub const CARET: Keycode
pub const UNDERSCORE: Keycode
pub const BACKQUOTE: Keycode
pub const A: Keycode
pub const B: Keycode
pub const C: Keycode
pub const D: Keycode
pub const E: Keycode
pub const F: Keycode
pub const G: Keycode
pub const H: Keycode
pub const I: Keycode
pub const J: Keycode
pub const K: Keycode
pub const L: Keycode
pub const M: Keycode
pub const N: Keycode
pub const O: Keycode
pub const P: Keycode
pub const Q: Keycode
pub const R: Keycode
pub const S: Keycode
pub const T: Keycode
pub const U: Keycode
pub const V: Keycode
pub const W: Keycode
pub const X: Keycode
pub const Y: Keycode
pub const Z: Keycode
pub const DELETE: Keycode
pub const CAPSLOCK: Keycode
pub const F1: Keycode
pub const F2: Keycode
pub const F3: Keycode
pub const F4: Keycode
pub const F5: Keycode
pub const F6: Keycode
pub const F7: Keycode
pub const F8: Keycode
pub const F9: Keycode
pub const F10: Keycode
pub const F11: Keycode
pub const F12: Keycode
pub const PRINTSCREEN: Keycode
pub const SCROLLLOCK: Keycode
pub const PAUSE: Keycode
pub const INSERT: Keycode
pub const HOME: Keycode
pub const PAGEUP: Keycode
pub const END: Keycode
pub const PAGEDOWN: Keycode
pub const RIGHT: Keycode
pub const LEFT: Keycode
pub const DOWN: Keycode
pub const UP: Keycode
pub const NUMLOCKCLEAR: Keycode
pub const KP_DIVIDE: Keycode
pub const KP_MULTIPLY: Keycode
pub const KP_MINUS: Keycode
pub const KP_PLUS: Keycode
pub const KP_ENTER: Keycode
pub const KP_1: Keycode
pub const KP_2: Keycode
pub const KP_3: Keycode
pub const KP_4: Keycode
pub const KP_5: Keycode
pub const KP_6: Keycode
pub const KP_7: Keycode
pub const KP_8: Keycode
pub const KP_9: Keycode
pub const KP_0: Keycode
pub const KP_PERIOD: Keycode
pub const APPLICATION: Keycode
pub const POWER: Keycode
pub const KP_EQUALS: Keycode
pub const F13: Keycode
pub const F14: Keycode
pub const F15: Keycode
pub const F16: Keycode
pub const F17: Keycode
pub const F18: Keycode
pub const F19: Keycode
pub const F20: Keycode
pub const F21: Keycode
pub const F22: Keycode
pub const F23: Keycode
pub const F24: Keycode
pub const EXECUTE: Keycode
pub const HELP: Keycode
pub const MENU: Keycode
pub const SELECT: Keycode
pub const STOP: Keycode
pub const AGAIN: Keycode
pub const UNDO: Keycode
pub const CUT: Keycode
pub const COPY: Keycode
pub const PASTE: Keycode
pub const FIND: Keycode
pub const MUTE: Keycode
pub const VOLUMEUP: Keycode
pub const VOLUMEDOWN: Keycode
pub const KP_COMMA: Keycode
pub const KP_EQUALSAS400: Keycode
pub const ALTERASE: Keycode
pub const SYSREQ: Keycode
pub const CANCEL: Keycode
pub const CLEAR: Keycode
pub const PRIOR: Keycode
pub const RETURN2: Keycode
pub const SEPARATOR: Keycode
pub const OUT: Keycode
pub const OPER: Keycode
pub const CLEARAGAIN: Keycode
pub const CRSEL: Keycode
pub const EXSEL: Keycode
pub const KP_00: Keycode
pub const KP_000: Keycode
pub const THOUSANDSSEPARATOR: Keycode
pub const DECIMALSEPARATOR: Keycode
pub const CURRENCYUNIT: Keycode
pub const CURRENCYSUBUNIT: Keycode
pub const KP_LEFTPAREN: Keycode
pub const KP_RIGHTPAREN: Keycode
pub const KP_LEFTBRACE: Keycode
pub const KP_RIGHTBRACE: Keycode
pub const KP_TAB: Keycode
pub const KP_BACKSPACE: Keycode
pub const KP_A: Keycode
pub const KP_B: Keycode
pub const KP_C: Keycode
pub const KP_D: Keycode
pub const KP_E: Keycode
pub const KP_F: Keycode
pub const KP_XOR: Keycode
pub const KP_POWER: Keycode
pub const KP_PERCENT: Keycode
pub const KP_LESS: Keycode
pub const KP_GREATER: Keycode
pub const KP_AMPERSAND: Keycode
pub const KP_DBLAMPERSAND: Keycode
pub const KP_VERTICALBAR: Keycode
pub const KP_DBLVERTICALBAR: Keycode
pub const KP_COLON: Keycode
pub const KP_HASH: Keycode
pub const KP_SPACE: Keycode
pub const KP_AT: Keycode
pub const KP_EXCLAM: Keycode
pub const KP_MEMSTORE: Keycode
pub const KP_MEMRECALL: Keycode
pub const KP_MEMCLEAR: Keycode
pub const KP_MEMADD: Keycode
pub const KP_MEMSUBTRACT: Keycode
pub const KP_MEMMULTIPLY: Keycode
pub const KP_MEMDIVIDE: Keycode
pub const KP_PLUSMINUS: Keycode
pub const KP_CLEAR: Keycode
pub const KP_CLEARENTRY: Keycode
pub const KP_BINARY: Keycode
pub const KP_OCTAL: Keycode
pub const KP_DECIMAL: Keycode
pub const KP_HEXADECIMAL: Keycode
pub const LCTRL: Keycode
pub const LSHIFT: Keycode
pub const LALT: Keycode
pub const LGUI: Keycode
pub const RCTRL: Keycode
pub const RSHIFT: Keycode
pub const RALT: Keycode
pub const RGUI: Keycode
pub const MODE: Keycode
pub const AUDIONEXT: Keycode
pub const AUDIOPREV: Keycode
pub const AUDIOSTOP: Keycode
pub const AUDIOPLAY: Keycode
pub const AUDIOMUTE: Keycode
pub const MEDIASELECT: Keycode
pub const WWW: Keycode
pub const MAIL: Keycode
pub const CALCULATOR: Keycode
pub const COMPUTER: Keycode
pub const AC_SEARCH: Keycode
pub const AC_HOME: Keycode
pub const AC_BACK: Keycode
pub const AC_FORWARD: Keycode
pub const AC_STOP: Keycode
pub const AC_REFRESH: Keycode
pub const AC_BOOKMARKS: Keycode
pub const BRIGHTNESSDOWN: Keycode
pub const BRIGHTNESSUP: Keycode
pub const DISPLAYSWITCH: Keycode
pub const KBDILLUMTOGGLE: Keycode
pub const KBDILLUMDOWN: Keycode
pub const KBDILLUMUP: Keycode
pub const EJECT: Keycode
pub const SLEEP: Keycode
pub const Backspace: Keycode = Keycode::BACKSPACE
pub const Tab: Keycode = Keycode::TAB
pub const Return: Keycode = Keycode::RETURN
pub const Escape: Keycode = Keycode::ESCAPE
pub const Space: Keycode = Keycode::SPACE
pub const Exclaim: Keycode = Keycode::EXCLAIM
pub const Quotedbl: Keycode = Keycode::QUOTEDBL
pub const Hash: Keycode = Keycode::HASH
pub const Dollar: Keycode = Keycode::DOLLAR
pub const Percent: Keycode = Keycode::PERCENT
pub const Ampersand: Keycode = Keycode::AMPERSAND
pub const Quote: Keycode = Keycode::QUOTE
pub const LeftParen: Keycode = Keycode::LEFTPAREN
pub const RightParen: Keycode = Keycode::RIGHTPAREN
pub const Asterisk: Keycode = Keycode::ASTERISK
pub const Plus: Keycode = Keycode::PLUS
pub const Comma: Keycode = Keycode::COMMA
pub const Minus: Keycode = Keycode::MINUS
pub const Period: Keycode = Keycode::PERIOD
pub const Slash: Keycode = Keycode::SLASH
pub const Num0: Keycode = Keycode::NUM_0
pub const Num1: Keycode = Keycode::NUM_1
pub const Num2: Keycode = Keycode::NUM_2
pub const Num3: Keycode = Keycode::NUM_3
pub const Num4: Keycode = Keycode::NUM_4
pub const Num5: Keycode = Keycode::NUM_5
pub const Num6: Keycode = Keycode::NUM_6
pub const Num7: Keycode = Keycode::NUM_7
pub const Num8: Keycode = Keycode::NUM_8
pub const Num9: Keycode = Keycode::NUM_9
pub const Colon: Keycode = Keycode::COLON
pub const Semicolon: Keycode = Keycode::SEMICOLON
pub const Less: Keycode = Keycode::LESS
pub const Equals: Keycode = Keycode::EQUALS
pub const Greater: Keycode = Keycode::GREATER
pub const Question: Keycode = Keycode::QUESTION
pub const At: Keycode = Keycode::AT
pub const LeftBracket: Keycode = Keycode::LEFTBRACKET
pub const Backslash: Keycode = Keycode::BACKSLASH
pub const RightBracket: Keycode = Keycode::RIGHTBRACKET
pub const Caret: Keycode = Keycode::CARET
pub const Underscore: Keycode = Keycode::UNDERSCORE
pub const Backquote: Keycode = Keycode::BACKQUOTE
pub const Delete: Keycode = Keycode::DELETE
pub const CapsLock: Keycode = Keycode::CAPSLOCK
pub const PrintScreen: Keycode = Keycode::PRINTSCREEN
pub const ScrollLock: Keycode = Keycode::SCROLLLOCK
pub const Pause: Keycode = Keycode::PAUSE
pub const Insert: Keycode = Keycode::INSERT
pub const Home: Keycode = Keycode::HOME
pub const PageUp: Keycode = Keycode::PAGEUP
pub const End: Keycode = Keycode::END
pub const PageDown: Keycode = Keycode::PAGEDOWN
pub const Right: Keycode = Keycode::RIGHT
pub const Left: Keycode = Keycode::LEFT
pub const Down: Keycode = Keycode::DOWN
pub const Up: Keycode = Keycode::UP
pub const NumLockClear: Keycode = Keycode::NUMLOCKCLEAR
pub const KpDivide: Keycode = Keycode::KP_DIVIDE
pub const KpMultiply: Keycode = Keycode::KP_MULTIPLY
pub const KpMinus: Keycode = Keycode::KP_MINUS
pub const KpPlus: Keycode = Keycode::KP_PLUS
pub const KpEnter: Keycode = Keycode::KP_ENTER
pub const Kp1: Keycode = Keycode::KP_1
pub const Kp2: Keycode = Keycode::KP_2
pub const Kp3: Keycode = Keycode::KP_3
pub const Kp4: Keycode = Keycode::KP_4
pub const Kp5: Keycode = Keycode::KP_5
pub const Kp6: Keycode = Keycode::KP_6
pub const Kp7: Keycode = Keycode::KP_7
pub const Kp8: Keycode = Keycode::KP_8
pub const Kp9: Keycode = Keycode::KP_9
pub const Kp0: Keycode = Keycode::KP_0
pub const KpPeriod: Keycode = Keycode::KP_PERIOD
pub const Application: Keycode = Keycode::APPLICATION
pub const Power: Keycode = Keycode::POWER
pub const KpEquals: Keycode = Keycode::KP_EQUALS
pub const Execute: Keycode = Keycode::EXECUTE
pub const Help: Keycode = Keycode::HELP
pub const Menu: Keycode = Keycode::MENU
pub const Select: Keycode = Keycode::SELECT
pub const Stop: Keycode = Keycode::STOP
pub const Again: Keycode = Keycode::AGAIN
pub const Undo: Keycode = Keycode::UNDO
pub const Cut: Keycode = Keycode::CUT
pub const Copy: Keycode = Keycode::COPY
pub const Paste: Keycode = Keycode::PASTE
pub const Find: Keycode = Keycode::FIND
pub const Mute: Keycode = Keycode::MUTE
pub const VolumeUp: Keycode = Keycode::VOLUMEUP
pub const VolumeDown: Keycode = Keycode::VOLUMEDOWN
pub const KpComma: Keycode = Keycode::KP_COMMA
pub const KpEqualsAS400: Keycode = Keycode::KP_EQUALSAS400
pub const AltErase: Keycode = Keycode::ALTERASE
pub const Sysreq: Keycode = Keycode::SYSREQ
pub const Cancel: Keycode = Keycode::CANCEL
pub const Clear: Keycode = Keycode::CLEAR
pub const Prior: Keycode = Keycode::PRIOR
pub const Return2: Keycode = Keycode::RETURN2
pub const Separator: Keycode = Keycode::SEPARATOR
pub const Out: Keycode = Keycode::OUT
pub const Oper: Keycode = Keycode::OPER
pub const ClearAgain: Keycode = Keycode::CLEARAGAIN
pub const CrSel: Keycode = Keycode::CRSEL
pub const ExSel: Keycode = Keycode::EXSEL
pub const Kp00: Keycode = Keycode::KP_00
pub const Kp000: Keycode = Keycode::KP_000
pub const ThousandsSeparator: Keycode = Keycode::THOUSANDSSEPARATOR
pub const DecimalSeparator: Keycode = Keycode::DECIMALSEPARATOR
pub const CurrencyUnit: Keycode = Keycode::CURRENCYUNIT
pub const CurrencySubUnit: Keycode = Keycode::CURRENCYSUBUNIT
pub const KpLeftParen: Keycode = Keycode::KP_LEFTPAREN
pub const KpRightParen: Keycode = Keycode::KP_RIGHTPAREN
pub const KpLeftBrace: Keycode = Keycode::KP_LEFTBRACE
pub const KpRightBrace: Keycode = Keycode::KP_RIGHTBRACE
pub const KpTab: Keycode = Keycode::KP_TAB
pub const KpBackspace: Keycode = Keycode::KP_BACKSPACE
pub const KpA: Keycode = Keycode::KP_A
pub const KpB: Keycode = Keycode::KP_B
pub const KpC: Keycode = Keycode::KP_C
pub const KpD: Keycode = Keycode::KP_D
pub const KpE: Keycode = Keycode::KP_E
pub const KpF: Keycode = Keycode::KP_F
pub const KpXor: Keycode = Keycode::KP_XOR
pub const KpPower: Keycode = Keycode::KP_POWER
pub const KpPercent: Keycode = Keycode::KP_PERCENT
pub const KpLess: Keycode = Keycode::KP_LESS
pub const KpGreater: Keycode = Keycode::KP_GREATER
pub const KpAmpersand: Keycode = Keycode::KP_AMPERSAND
pub const KpDblAmpersand: Keycode = Keycode::KP_DBLAMPERSAND
pub const KpVerticalBar: Keycode = Keycode::KP_VERTICALBAR
pub const KpDblVerticalBar: Keycode = Keycode::KP_DBLVERTICALBAR
pub const KpColon: Keycode = Keycode::KP_COLON
pub const KpHash: Keycode = Keycode::KP_HASH
pub const KpSpace: Keycode = Keycode::KP_SPACE
pub const KpAt: Keycode = Keycode::KP_AT
pub const KpExclam: Keycode = Keycode::KP_EXCLAM
pub const KpMemStore: Keycode = Keycode::KP_MEMSTORE
pub const KpMemRecall: Keycode = Keycode::KP_MEMRECALL
pub const KpMemClear: Keycode = Keycode::KP_MEMCLEAR
pub const KpMemAdd: Keycode = Keycode::KP_MEMADD
pub const KpMemSubtract: Keycode = Keycode::KP_MEMSUBTRACT
pub const KpMemMultiply: Keycode = Keycode::KP_MEMMULTIPLY
pub const KpMemDivide: Keycode = Keycode::KP_MEMDIVIDE
pub const KpPlusMinus: Keycode = Keycode::KP_PLUSMINUS
pub const KpClear: Keycode = Keycode::KP_CLEAR
pub const KpClearEntry: Keycode = Keycode::KP_CLEARENTRY
pub const KpBinary: Keycode = Keycode::KP_BINARY
pub const KpOctal: Keycode = Keycode::KP_OCTAL
pub const KpDecimal: Keycode = Keycode::KP_DECIMAL
pub const KpHexadecimal: Keycode = Keycode::KP_HEXADECIMAL
pub const LCtrl: Keycode = Keycode::LCTRL
pub const LShift: Keycode = Keycode::LSHIFT
pub const LAlt: Keycode = Keycode::LALT
pub const LGui: Keycode = Keycode::LGUI
pub const RCtrl: Keycode = Keycode::RCTRL
pub const RShift: Keycode = Keycode::RSHIFT
pub const RAlt: Keycode = Keycode::RALT
pub const RGui: Keycode = Keycode::RGUI
pub const Mode: Keycode = Keycode::MODE
pub const AudioNext: Keycode = Keycode::AUDIONEXT
pub const AudioPrev: Keycode = Keycode::AUDIOPREV
pub const AudioStop: Keycode = Keycode::AUDIOSTOP
pub const AudioPlay: Keycode = Keycode::AUDIOPLAY
pub const AudioMute: Keycode = Keycode::AUDIOMUTE
pub const MediaSelect: Keycode = Keycode::MEDIASELECT
pub const Www: Keycode = Keycode::WWW
pub const Mail: Keycode = Keycode::MAIL
pub const Calculator: Keycode = Keycode::CALCULATOR
pub const Computer: Keycode = Keycode::COMPUTER
pub const AcSearch: Keycode = Keycode::AC_SEARCH
pub const AcHome: Keycode = Keycode::AC_HOME
pub const AcBack: Keycode = Keycode::AC_BACK
pub const AcForward: Keycode = Keycode::AC_FORWARD
pub const AcStop: Keycode = Keycode::AC_STOP
pub const AcRefresh: Keycode = Keycode::AC_REFRESH
pub const AcBookmarks: Keycode = Keycode::AC_BOOKMARKS
pub const BrightnessDown: Keycode = Keycode::BRIGHTNESSDOWN
pub const BrightnessUp: Keycode = Keycode::BRIGHTNESSUP
pub const DisplaySwitch: Keycode = Keycode::DISPLAYSWITCH
pub const KbdIllumToggle: Keycode = Keycode::KBDILLUMTOGGLE
pub const KbdIllumDown: Keycode = Keycode::KBDILLUMDOWN
pub const KbdIllumUp: Keycode = Keycode::KBDILLUMUP
pub const Eject: Keycode = Keycode::EJECT
pub const Sleep: Keycode = Keycode::SLEEP
Trait Implementations§
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> ByteSized for T
impl<T> ByteSized for T
Source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
The alignment of this type in bytes.
Source§fn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Returns the alignment of this type in bytes.
Source§fn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Source§impl<T, R> Chain<R> for Twhere
T: ?Sized,
impl<T, R> Chain<R> for Twhere
T: ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> ExtAny for T
impl<T> ExtAny for T
Source§fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
Returns a deterministic hash of the
TypeId
of Self
using a custom hasher.Source§fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Source§impl<T> ExtMem for Twhere
T: ?Sized,
impl<T> ExtMem for Twhere
T: ?Sized,
Source§const NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Know whether dropping values of this type matters, in compile-time.
Source§fn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Returns the minimum alignment of the type in bytes. Read more
Source§fn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Returns the alignment of the pointed-to value in bytes. Read more
Source§fn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Returns the size of a type in bytes. Read more
Source§fn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Returns the size of the pointed-to value in bytes. Read more
Source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
Returns
true
if dropping values of this type matters. Read moreSource§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
Forgets about
self
without running its destructor. Read moreSource§fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Source§unsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
Available on crate feature
unsafe_layout
only.Returns the value of type
T
represented by the all-zero byte-pattern. Read moreSource§unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
Available on crate feature
unsafe_layout
only.Returns the value of type
T
represented by the all-zero byte-pattern. Read moreSource§fn mem_as_bytes(&self) -> &[u8] ⓘ
fn mem_as_bytes(&self) -> &[u8] ⓘ
Available on crate feature
unsafe_slice
only.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Hook for T
impl<T> Hook for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more