Struct Keycode

Source
pub struct Keycode(/* private fields */);
Available on crate feature dep_sdl2 only.

Implementations§

Source§

impl Keycode

Source

pub const BACKSPACE: Keycode

Source

pub const TAB: Keycode

Source

pub const RETURN: Keycode

Source

pub const ESCAPE: Keycode

Source

pub const SPACE: Keycode

Source

pub const EXCLAIM: Keycode

Source

pub const QUOTEDBL: Keycode

Source

pub const HASH: Keycode

Source

pub const DOLLAR: Keycode

Source

pub const PERCENT: Keycode

Source

pub const AMPERSAND: Keycode

Source

pub const QUOTE: Keycode

Source

pub const LEFTPAREN: Keycode

Source

pub const RIGHTPAREN: Keycode

Source

pub const ASTERISK: Keycode

Source

pub const PLUS: Keycode

Source

pub const COMMA: Keycode

Source

pub const MINUS: Keycode

Source

pub const PERIOD: Keycode

Source

pub const SLASH: Keycode

Source

pub const NUM_0: Keycode

Source

pub const NUM_1: Keycode

Source

pub const NUM_2: Keycode

Source

pub const NUM_3: Keycode

Source

pub const NUM_4: Keycode

Source

pub const NUM_5: Keycode

Source

pub const NUM_6: Keycode

Source

pub const NUM_7: Keycode

Source

pub const NUM_8: Keycode

Source

pub const NUM_9: Keycode

Source

pub const COLON: Keycode

Source

pub const SEMICOLON: Keycode

Source

pub const LESS: Keycode

Source

pub const EQUALS: Keycode

Source

pub const GREATER: Keycode

Source

pub const QUESTION: Keycode

Source

pub const AT: Keycode

Source

pub const LEFTBRACKET: Keycode

Source

pub const BACKSLASH: Keycode

Source

pub const RIGHTBRACKET: Keycode

Source

pub const CARET: Keycode

Source

pub const UNDERSCORE: Keycode

Source

pub const BACKQUOTE: Keycode

Source

pub const A: Keycode

Source

pub const B: Keycode

Source

pub const C: Keycode

Source

pub const D: Keycode

Source

pub const E: Keycode

Source

pub const F: Keycode

Source

pub const G: Keycode

Source

pub const H: Keycode

Source

pub const I: Keycode

Source

pub const J: Keycode

Source

pub const K: Keycode

Source

pub const L: Keycode

Source

pub const M: Keycode

Source

pub const N: Keycode

Source

pub const O: Keycode

Source

pub const P: Keycode

Source

pub const Q: Keycode

Source

pub const R: Keycode

Source

pub const S: Keycode

Source

pub const T: Keycode

Source

pub const U: Keycode

Source

pub const V: Keycode

Source

pub const W: Keycode

Source

pub const X: Keycode

Source

pub const Y: Keycode

Source

pub const Z: Keycode

Source

pub const DELETE: Keycode

Source

pub const CAPSLOCK: Keycode

Source

pub const F1: Keycode

Source

pub const F2: Keycode

Source

pub const F3: Keycode

Source

pub const F4: Keycode

Source

pub const F5: Keycode

Source

pub const F6: Keycode

Source

pub const F7: Keycode

Source

pub const F8: Keycode

Source

pub const F9: Keycode

Source

pub const F10: Keycode

Source

pub const F11: Keycode

Source

pub const F12: Keycode

Source

pub const PRINTSCREEN: Keycode

Source

pub const SCROLLLOCK: Keycode

Source

pub const PAUSE: Keycode

Source

pub const INSERT: Keycode

Source

pub const HOME: Keycode

Source

pub const PAGEUP: Keycode

Source

pub const END: Keycode

Source

pub const PAGEDOWN: Keycode

Source

pub const RIGHT: Keycode

Source

pub const LEFT: Keycode

Source

pub const DOWN: Keycode

Source

pub const UP: Keycode

Source

pub const NUMLOCKCLEAR: Keycode

Source

pub const KP_DIVIDE: Keycode

Source

pub const KP_MULTIPLY: Keycode

Source

pub const KP_MINUS: Keycode

Source

pub const KP_PLUS: Keycode

Source

pub const KP_ENTER: Keycode

Source

pub const KP_1: Keycode

Source

pub const KP_2: Keycode

Source

pub const KP_3: Keycode

Source

pub const KP_4: Keycode

Source

pub const KP_5: Keycode

Source

pub const KP_6: Keycode

Source

pub const KP_7: Keycode

Source

pub const KP_8: Keycode

Source

pub const KP_9: Keycode

Source

pub const KP_0: Keycode

Source

pub const KP_PERIOD: Keycode

Source

pub const APPLICATION: Keycode

Source

pub const POWER: Keycode

Source

pub const KP_EQUALS: Keycode

Source

pub const F13: Keycode

Source

pub const F14: Keycode

Source

pub const F15: Keycode

Source

pub const F16: Keycode

Source

pub const F17: Keycode

Source

pub const F18: Keycode

Source

pub const F19: Keycode

Source

pub const F20: Keycode

Source

pub const F21: Keycode

Source

pub const F22: Keycode

Source

pub const F23: Keycode

Source

pub const F24: Keycode

Source

pub const EXECUTE: Keycode

Source

pub const HELP: Keycode

Source

pub const MENU: Keycode

Source

pub const SELECT: Keycode

Source

pub const STOP: Keycode

Source

pub const AGAIN: Keycode

Source

pub const UNDO: Keycode

Source

pub const CUT: Keycode

Source

pub const COPY: Keycode

Source

pub const PASTE: Keycode

Source

pub const FIND: Keycode

Source

pub const MUTE: Keycode

Source

pub const VOLUMEUP: Keycode

Source

pub const VOLUMEDOWN: Keycode

Source

pub const KP_COMMA: Keycode

Source

pub const KP_EQUALSAS400: Keycode

Source

pub const ALTERASE: Keycode

Source

pub const SYSREQ: Keycode

Source

pub const CANCEL: Keycode

Source

pub const CLEAR: Keycode

Source

pub const PRIOR: Keycode

Source

pub const RETURN2: Keycode

Source

pub const SEPARATOR: Keycode

Source

pub const OUT: Keycode

Source

pub const OPER: Keycode

Source

pub const CLEARAGAIN: Keycode

Source

pub const CRSEL: Keycode

Source

pub const EXSEL: Keycode

Source

pub const KP_00: Keycode

Source

pub const KP_000: Keycode

Source

pub const THOUSANDSSEPARATOR: Keycode

Source

pub const DECIMALSEPARATOR: Keycode

Source

pub const CURRENCYUNIT: Keycode

Source

pub const CURRENCYSUBUNIT: Keycode

Source

pub const KP_LEFTPAREN: Keycode

Source

pub const KP_RIGHTPAREN: Keycode

Source

pub const KP_LEFTBRACE: Keycode

Source

pub const KP_RIGHTBRACE: Keycode

Source

pub const KP_TAB: Keycode

Source

pub const KP_BACKSPACE: Keycode

Source

pub const KP_A: Keycode

Source

pub const KP_B: Keycode

Source

pub const KP_C: Keycode

Source

pub const KP_D: Keycode

Source

pub const KP_E: Keycode

Source

pub const KP_F: Keycode

Source

pub const KP_XOR: Keycode

Source

pub const KP_POWER: Keycode

Source

pub const KP_PERCENT: Keycode

Source

pub const KP_LESS: Keycode

Source

pub const KP_GREATER: Keycode

Source

pub const KP_AMPERSAND: Keycode

Source

pub const KP_DBLAMPERSAND: Keycode

Source

pub const KP_VERTICALBAR: Keycode

Source

pub const KP_DBLVERTICALBAR: Keycode

Source

pub const KP_COLON: Keycode

Source

pub const KP_HASH: Keycode

Source

pub const KP_SPACE: Keycode

Source

pub const KP_AT: Keycode

Source

pub const KP_EXCLAM: Keycode

Source

pub const KP_MEMSTORE: Keycode

Source

pub const KP_MEMRECALL: Keycode

Source

pub const KP_MEMCLEAR: Keycode

Source

pub const KP_MEMADD: Keycode

Source

pub const KP_MEMSUBTRACT: Keycode

Source

pub const KP_MEMMULTIPLY: Keycode

Source

pub const KP_MEMDIVIDE: Keycode

Source

pub const KP_PLUSMINUS: Keycode

Source

pub const KP_CLEAR: Keycode

Source

pub const KP_CLEARENTRY: Keycode

Source

pub const KP_BINARY: Keycode

Source

pub const KP_OCTAL: Keycode

Source

pub const KP_DECIMAL: Keycode

Source

pub const KP_HEXADECIMAL: Keycode

Source

pub const LCTRL: Keycode

Source

pub const LSHIFT: Keycode

Source

pub const LALT: Keycode

Source

pub const LGUI: Keycode

Source

pub const RCTRL: Keycode

Source

pub const RSHIFT: Keycode

Source

pub const RALT: Keycode

Source

pub const RGUI: Keycode

Source

pub const MODE: Keycode

Source

pub const AUDIONEXT: Keycode

Source

pub const AUDIOPREV: Keycode

Source

pub const AUDIOSTOP: Keycode

Source

pub const AUDIOPLAY: Keycode

Source

pub const AUDIOMUTE: Keycode

Source

pub const MEDIASELECT: Keycode

Source

pub const WWW: Keycode

Source

pub const MAIL: Keycode

Source

pub const CALCULATOR: Keycode

Source

pub const COMPUTER: Keycode

Source

pub const AC_HOME: Keycode

Source

pub const AC_BACK: Keycode

Source

pub const AC_FORWARD: Keycode

Source

pub const AC_STOP: Keycode

Source

pub const AC_REFRESH: Keycode

Source

pub const AC_BOOKMARKS: Keycode

Source

pub const BRIGHTNESSDOWN: Keycode

Source

pub const BRIGHTNESSUP: Keycode

Source

pub const DISPLAYSWITCH: Keycode

Source

pub const KBDILLUMTOGGLE: Keycode

Source

pub const KBDILLUMDOWN: Keycode

Source

pub const KBDILLUMUP: Keycode

Source

pub const EJECT: Keycode

Source

pub const SLEEP: Keycode

Source

pub const Backspace: Keycode = Keycode::BACKSPACE

Source

pub const Tab: Keycode = Keycode::TAB

Source

pub const Return: Keycode = Keycode::RETURN

Source

pub const Escape: Keycode = Keycode::ESCAPE

Source

pub const Space: Keycode = Keycode::SPACE

Source

pub const Exclaim: Keycode = Keycode::EXCLAIM

Source

pub const Quotedbl: Keycode = Keycode::QUOTEDBL

Source

pub const Hash: Keycode = Keycode::HASH

Source

pub const Dollar: Keycode = Keycode::DOLLAR

Source

pub const Percent: Keycode = Keycode::PERCENT

Source

pub const Ampersand: Keycode = Keycode::AMPERSAND

Source

pub const Quote: Keycode = Keycode::QUOTE

Source

pub const LeftParen: Keycode = Keycode::LEFTPAREN

Source

pub const RightParen: Keycode = Keycode::RIGHTPAREN

Source

pub const Asterisk: Keycode = Keycode::ASTERISK

Source

pub const Plus: Keycode = Keycode::PLUS

Source

pub const Comma: Keycode = Keycode::COMMA

Source

pub const Minus: Keycode = Keycode::MINUS

Source

pub const Period: Keycode = Keycode::PERIOD

Source

pub const Slash: Keycode = Keycode::SLASH

Source

pub const Num0: Keycode = Keycode::NUM_0

Source

pub const Num1: Keycode = Keycode::NUM_1

Source

pub const Num2: Keycode = Keycode::NUM_2

Source

pub const Num3: Keycode = Keycode::NUM_3

Source

pub const Num4: Keycode = Keycode::NUM_4

Source

pub const Num5: Keycode = Keycode::NUM_5

Source

pub const Num6: Keycode = Keycode::NUM_6

Source

pub const Num7: Keycode = Keycode::NUM_7

Source

pub const Num8: Keycode = Keycode::NUM_8

Source

pub const Num9: Keycode = Keycode::NUM_9

Source

pub const Colon: Keycode = Keycode::COLON

Source

pub const Semicolon: Keycode = Keycode::SEMICOLON

Source

pub const Less: Keycode = Keycode::LESS

Source

pub const Equals: Keycode = Keycode::EQUALS

Source

pub const Greater: Keycode = Keycode::GREATER

Source

pub const Question: Keycode = Keycode::QUESTION

Source

pub const At: Keycode = Keycode::AT

Source

pub const LeftBracket: Keycode = Keycode::LEFTBRACKET

Source

pub const Backslash: Keycode = Keycode::BACKSLASH

Source

pub const RightBracket: Keycode = Keycode::RIGHTBRACKET

Source

pub const Caret: Keycode = Keycode::CARET

Source

pub const Underscore: Keycode = Keycode::UNDERSCORE

Source

pub const Backquote: Keycode = Keycode::BACKQUOTE

Source

pub const Delete: Keycode = Keycode::DELETE

Source

pub const CapsLock: Keycode = Keycode::CAPSLOCK

Source

pub const PrintScreen: Keycode = Keycode::PRINTSCREEN

Source

pub const ScrollLock: Keycode = Keycode::SCROLLLOCK

Source

pub const Pause: Keycode = Keycode::PAUSE

Source

pub const Insert: Keycode = Keycode::INSERT

Source

pub const Home: Keycode = Keycode::HOME

Source

pub const PageUp: Keycode = Keycode::PAGEUP

Source

pub const End: Keycode = Keycode::END

Source

pub const PageDown: Keycode = Keycode::PAGEDOWN

Source

pub const Right: Keycode = Keycode::RIGHT

Source

pub const Left: Keycode = Keycode::LEFT

Source

pub const Down: Keycode = Keycode::DOWN

Source

pub const Up: Keycode = Keycode::UP

Source

pub const NumLockClear: Keycode = Keycode::NUMLOCKCLEAR

Source

pub const KpDivide: Keycode = Keycode::KP_DIVIDE

Source

pub const KpMultiply: Keycode = Keycode::KP_MULTIPLY

Source

pub const KpMinus: Keycode = Keycode::KP_MINUS

Source

pub const KpPlus: Keycode = Keycode::KP_PLUS

Source

pub const KpEnter: Keycode = Keycode::KP_ENTER

Source

pub const Kp1: Keycode = Keycode::KP_1

Source

pub const Kp2: Keycode = Keycode::KP_2

Source

pub const Kp3: Keycode = Keycode::KP_3

Source

pub const Kp4: Keycode = Keycode::KP_4

Source

pub const Kp5: Keycode = Keycode::KP_5

Source

pub const Kp6: Keycode = Keycode::KP_6

Source

pub const Kp7: Keycode = Keycode::KP_7

Source

pub const Kp8: Keycode = Keycode::KP_8

Source

pub const Kp9: Keycode = Keycode::KP_9

Source

pub const Kp0: Keycode = Keycode::KP_0

Source

pub const KpPeriod: Keycode = Keycode::KP_PERIOD

Source

pub const Application: Keycode = Keycode::APPLICATION

Source

pub const Power: Keycode = Keycode::POWER

Source

pub const KpEquals: Keycode = Keycode::KP_EQUALS

Source

pub const Execute: Keycode = Keycode::EXECUTE

Source

pub const Help: Keycode = Keycode::HELP

Source

pub const Menu: Keycode = Keycode::MENU

Source

pub const Select: Keycode = Keycode::SELECT

Source

pub const Stop: Keycode = Keycode::STOP

Source

pub const Again: Keycode = Keycode::AGAIN

Source

pub const Undo: Keycode = Keycode::UNDO

Source

pub const Cut: Keycode = Keycode::CUT

Source

pub const Copy: Keycode = Keycode::COPY

Source

pub const Paste: Keycode = Keycode::PASTE

Source

pub const Find: Keycode = Keycode::FIND

Source

pub const Mute: Keycode = Keycode::MUTE

Source

pub const VolumeUp: Keycode = Keycode::VOLUMEUP

Source

pub const VolumeDown: Keycode = Keycode::VOLUMEDOWN

Source

pub const KpComma: Keycode = Keycode::KP_COMMA

Source

pub const KpEqualsAS400: Keycode = Keycode::KP_EQUALSAS400

Source

pub const AltErase: Keycode = Keycode::ALTERASE

Source

pub const Sysreq: Keycode = Keycode::SYSREQ

Source

pub const Cancel: Keycode = Keycode::CANCEL

Source

pub const Clear: Keycode = Keycode::CLEAR

Source

pub const Prior: Keycode = Keycode::PRIOR

Source

pub const Return2: Keycode = Keycode::RETURN2

Source

pub const Separator: Keycode = Keycode::SEPARATOR

Source

pub const Out: Keycode = Keycode::OUT

Source

pub const Oper: Keycode = Keycode::OPER

Source

pub const ClearAgain: Keycode = Keycode::CLEARAGAIN

Source

pub const CrSel: Keycode = Keycode::CRSEL

Source

pub const ExSel: Keycode = Keycode::EXSEL

Source

pub const Kp00: Keycode = Keycode::KP_00

Source

pub const Kp000: Keycode = Keycode::KP_000

Source

pub const ThousandsSeparator: Keycode = Keycode::THOUSANDSSEPARATOR

Source

pub const DecimalSeparator: Keycode = Keycode::DECIMALSEPARATOR

Source

pub const CurrencyUnit: Keycode = Keycode::CURRENCYUNIT

Source

pub const CurrencySubUnit: Keycode = Keycode::CURRENCYSUBUNIT

Source

pub const KpLeftParen: Keycode = Keycode::KP_LEFTPAREN

Source

pub const KpRightParen: Keycode = Keycode::KP_RIGHTPAREN

Source

pub const KpLeftBrace: Keycode = Keycode::KP_LEFTBRACE

Source

pub const KpRightBrace: Keycode = Keycode::KP_RIGHTBRACE

Source

pub const KpTab: Keycode = Keycode::KP_TAB

Source

pub const KpBackspace: Keycode = Keycode::KP_BACKSPACE

Source

pub const KpA: Keycode = Keycode::KP_A

Source

pub const KpB: Keycode = Keycode::KP_B

Source

pub const KpC: Keycode = Keycode::KP_C

Source

pub const KpD: Keycode = Keycode::KP_D

Source

pub const KpE: Keycode = Keycode::KP_E

Source

pub const KpF: Keycode = Keycode::KP_F

Source

pub const KpXor: Keycode = Keycode::KP_XOR

Source

pub const KpPower: Keycode = Keycode::KP_POWER

Source

pub const KpPercent: Keycode = Keycode::KP_PERCENT

Source

pub const KpLess: Keycode = Keycode::KP_LESS

Source

pub const KpGreater: Keycode = Keycode::KP_GREATER

Source

pub const KpAmpersand: Keycode = Keycode::KP_AMPERSAND

Source

pub const KpDblAmpersand: Keycode = Keycode::KP_DBLAMPERSAND

Source

pub const KpVerticalBar: Keycode = Keycode::KP_VERTICALBAR

Source

pub const KpDblVerticalBar: Keycode = Keycode::KP_DBLVERTICALBAR

Source

pub const KpColon: Keycode = Keycode::KP_COLON

Source

pub const KpHash: Keycode = Keycode::KP_HASH

Source

pub const KpSpace: Keycode = Keycode::KP_SPACE

Source

pub const KpAt: Keycode = Keycode::KP_AT

Source

pub const KpExclam: Keycode = Keycode::KP_EXCLAM

Source

pub const KpMemStore: Keycode = Keycode::KP_MEMSTORE

Source

pub const KpMemRecall: Keycode = Keycode::KP_MEMRECALL

Source

pub const KpMemClear: Keycode = Keycode::KP_MEMCLEAR

Source

pub const KpMemAdd: Keycode = Keycode::KP_MEMADD

Source

pub const KpMemSubtract: Keycode = Keycode::KP_MEMSUBTRACT

Source

pub const KpMemMultiply: Keycode = Keycode::KP_MEMMULTIPLY

Source

pub const KpMemDivide: Keycode = Keycode::KP_MEMDIVIDE

Source

pub const KpPlusMinus: Keycode = Keycode::KP_PLUSMINUS

Source

pub const KpClear: Keycode = Keycode::KP_CLEAR

Source

pub const KpClearEntry: Keycode = Keycode::KP_CLEARENTRY

Source

pub const KpBinary: Keycode = Keycode::KP_BINARY

Source

pub const KpOctal: Keycode = Keycode::KP_OCTAL

Source

pub const KpDecimal: Keycode = Keycode::KP_DECIMAL

Source

pub const KpHexadecimal: Keycode = Keycode::KP_HEXADECIMAL

Source

pub const LCtrl: Keycode = Keycode::LCTRL

Source

pub const LShift: Keycode = Keycode::LSHIFT

Source

pub const LAlt: Keycode = Keycode::LALT

Source

pub const LGui: Keycode = Keycode::LGUI

Source

pub const RCtrl: Keycode = Keycode::RCTRL

Source

pub const RShift: Keycode = Keycode::RSHIFT

Source

pub const RAlt: Keycode = Keycode::RALT

Source

pub const RGui: Keycode = Keycode::RGUI

Source

pub const Mode: Keycode = Keycode::MODE

Source

pub const AudioNext: Keycode = Keycode::AUDIONEXT

Source

pub const AudioPrev: Keycode = Keycode::AUDIOPREV

Source

pub const AudioStop: Keycode = Keycode::AUDIOSTOP

Source

pub const AudioPlay: Keycode = Keycode::AUDIOPLAY

Source

pub const AudioMute: Keycode = Keycode::AUDIOMUTE

Source

pub const MediaSelect: Keycode = Keycode::MEDIASELECT

Source

pub const Www: Keycode = Keycode::WWW

Source

pub const Mail: Keycode = Keycode::MAIL

Source

pub const Calculator: Keycode = Keycode::CALCULATOR

Source

pub const Computer: Keycode = Keycode::COMPUTER

Source

pub const AcSearch: Keycode = Keycode::AC_SEARCH

Source

pub const AcHome: Keycode = Keycode::AC_HOME

Source

pub const AcBack: Keycode = Keycode::AC_BACK

Source

pub const AcForward: Keycode = Keycode::AC_FORWARD

Source

pub const AcStop: Keycode = Keycode::AC_STOP

Source

pub const AcRefresh: Keycode = Keycode::AC_REFRESH

Source

pub const AcBookmarks: Keycode = Keycode::AC_BOOKMARKS

Source

pub const BrightnessDown: Keycode = Keycode::BRIGHTNESSDOWN

Source

pub const BrightnessUp: Keycode = Keycode::BRIGHTNESSUP

Source

pub const DisplaySwitch: Keycode = Keycode::DISPLAYSWITCH

Source

pub const KbdIllumToggle: Keycode = Keycode::KBDILLUMTOGGLE

Source

pub const KbdIllumDown: Keycode = Keycode::KBDILLUMDOWN

Source

pub const KbdIllumUp: Keycode = Keycode::KBDILLUMUP

Source

pub const Eject: Keycode = Keycode::EJECT

Source

pub const Sleep: Keycode = Keycode::SLEEP

Source§

impl Keycode

Source

pub fn into_i32(&self) -> i32

Source

pub fn from_i32(n: i32) -> Option<Keycode>

Source§

impl Keycode

Source

pub fn from_scancode(scancode: Scancode) -> Option<Keycode>

Gets the virtual key from a scancode. Returns None if there is no corresponding virtual key.

Source

pub fn from_name(name: &str) -> Option<Keycode>

Source

pub fn name(self) -> String

Methods from Deref<Target = i32>§

1.43.0 · Source

pub const MIN: i32 = -2_147_483_648i32

1.43.0 · Source

pub const MAX: i32 = 2_147_483_647i32

1.53.0 · Source

pub const BITS: u32 = 32u32

Trait Implementations§

Source§

impl Clone for Keycode

Source§

fn clone(&self) -> Keycode

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Keycode

Source§

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

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

impl Deref for Keycode

Source§

type Target = i32

The resulting type after dereferencing.
Source§

fn deref(&self) -> &i32

Dereferences the value.
Source§

impl Display for Keycode

Source§

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

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

impl Hash for Keycode

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 Into<i32> for Keycode

Source§

fn into(self) -> i32

Converts this type into the (usually inferred) input type.
Source§

impl PartialEq for Keycode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Keycode

Source§

impl Eq for Keycode

Source§

impl StructuralPartialEq for Keycode

Auto Trait Implementations§

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> ByteSized for T

Source§

const BYTE_ALIGN: usize = _

The alignment of this type in bytes.
Source§

const BYTE_SIZE: usize = _

The size of this type in bytes.
Source§

fn byte_align(&self) -> usize

Returns the alignment of this type in bytes.
Source§

fn byte_size(&self) -> usize

Returns the size of this type in bytes. Read more
Source§

fn ptr_size_ratio(&self) -> [usize; 2]

Returns the size ratio between Ptr::BYTES and BYTE_SIZE. Read more
Source§

impl<T, R> Chain<R> for T
where T: ?Sized,

Source§

fn chain<F>(self, f: F) -> R
where F: FnOnce(Self) -> R, Self: Sized,

Chain a function which takes the parameter by value.
Source§

fn chain_ref<F>(&self, f: F) -> R
where F: FnOnce(&Self) -> R,

Chain a function which takes the parameter by shared reference.
Source§

fn chain_mut<F>(&mut self, f: F) -> R
where F: FnOnce(&mut Self) -> R,

Chain a function which takes the parameter by exclusive reference.
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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ExtAny for T
where T: Any + ?Sized,

Source§

fn type_id() -> TypeId

Returns the TypeId of Self. Read more
Source§

fn type_of(&self) -> TypeId

Returns the TypeId of self. Read more
Source§

fn type_name(&self) -> &'static str

Returns the type name of self. Read more
Source§

fn type_is<T: 'static>(&self) -> bool

Returns true if Self is of type T. Read more
Source§

fn type_hash(&self) -> u64

Returns a deterministic hash of the TypeId of Self.
Source§

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_ref(&self) -> &dyn Any
where Self: Sized,

Upcasts &self as &dyn Any. Read more
Source§

fn as_any_mut(&mut self) -> &mut dyn Any
where Self: Sized,

Upcasts &mut self as &mut dyn Any. Read more
Source§

fn as_any_box(self: Box<Self>) -> Box<dyn Any>
where Self: Sized,

Upcasts Box<self> as Box<dyn Any>. Read more
Source§

fn downcast_ref<T: 'static>(&self) -> Option<&T>

Available on crate feature unsafe_layout only.
Returns some shared reference to the inner value if it is of type T. Read more
Source§

fn downcast_mut<T: 'static>(&mut self) -> Option<&mut T>

Available on crate feature unsafe_layout only.
Returns some exclusive reference to the inner value if it is of type T. Read more
Source§

impl<T> ExtMem for T
where T: ?Sized,

Source§

const NEEDS_DROP: bool = _

Know whether dropping values of this type matters, in compile-time.
Source§

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

Returns the alignment of the pointed-to value in bytes. Read more
Source§

fn mem_size_of<T>() -> usize

Returns the size of a type in bytes. Read more
Source§

fn mem_size_of_val(&self) -> usize

Returns the size of the pointed-to value in bytes. Read more
Source§

fn mem_copy(&self) -> Self
where Self: Copy,

Bitwise-copies a value. Read more
Source§

fn mem_needs_drop(&self) -> bool

Returns true if dropping values of this type matters. Read more
Source§

fn mem_drop(self)
where Self: Sized,

Drops self by running its destructor. Read more
Source§

fn mem_forget(self)
where Self: Sized,

Forgets about self without running its destructor. Read more
Source§

fn mem_replace(&mut self, other: Self) -> Self
where Self: Sized,

Replaces self with other, returning the previous value of self. Read more
Source§

fn mem_take(&mut self) -> Self
where Self: Default,

Replaces self with its default value, returning the previous value of self. Read more
Source§

fn mem_swap(&mut self, other: &mut Self)
where Self: Sized,

Swaps the value of self and other without deinitializing either one. Read more
Source§

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 more
Source§

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 more
Source§

fn mem_as_bytes(&self) -> &[u8]
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &[u8]. Read more
Source§

fn mem_as_bytes_mut(&mut self) -> &mut [u8]
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &mut [u8]. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> Hook for T

Source§

fn hook_ref<F>(self, f: F) -> Self
where F: FnOnce(&Self),

Applies a function which takes the parameter by shared reference, and then returns the (possibly) modified owned value. Read more
Source§

fn hook_mut<F>(self, f: F) -> Self
where F: FnOnce(&mut Self),

Applies a function which takes the parameter by exclusive reference, and then returns the (possibly) modified owned value. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> Ungil for T
where T: Send,