#[repr(u32)]pub enum KeyCode {
Show 163 variants
Key1 = 0,
Key2 = 1,
Key3 = 2,
Key4 = 3,
Key5 = 4,
Key6 = 5,
Key7 = 6,
Key8 = 7,
Key9 = 8,
Key0 = 9,
A = 10,
B = 11,
C = 12,
D = 13,
E = 14,
F = 15,
G = 16,
H = 17,
I = 18,
J = 19,
K = 20,
L = 21,
M = 22,
N = 23,
O = 24,
P = 25,
Q = 26,
R = 27,
S = 28,
T = 29,
U = 30,
V = 31,
W = 32,
X = 33,
Y = 34,
Z = 35,
Escape = 36,
F1 = 37,
F2 = 38,
F3 = 39,
F4 = 40,
F5 = 41,
F6 = 42,
F7 = 43,
F8 = 44,
F9 = 45,
F10 = 46,
F11 = 47,
F12 = 48,
F13 = 49,
F14 = 50,
F15 = 51,
F16 = 52,
F17 = 53,
F18 = 54,
F19 = 55,
F20 = 56,
F21 = 57,
F22 = 58,
F23 = 59,
F24 = 60,
Snapshot = 61,
Scroll = 62,
Pause = 63,
Insert = 64,
Home = 65,
Delete = 66,
End = 67,
PageDown = 68,
PageUp = 69,
Left = 70,
Up = 71,
Right = 72,
Down = 73,
Backspace = 74,
Return = 75,
Space = 76,
Compose = 77,
Caret = 78,
Numlock = 79,
Numpad0 = 80,
Numpad1 = 81,
Numpad2 = 82,
Numpad3 = 83,
Numpad4 = 84,
Numpad5 = 85,
Numpad6 = 86,
Numpad7 = 87,
Numpad8 = 88,
Numpad9 = 89,
AbntC1 = 90,
AbntC2 = 91,
NumpadAdd = 92,
Apostrophe = 93,
Apps = 94,
At = 95,
Ax = 96,
Backslash = 97,
Calculator = 98,
Capital = 99,
Colon = 100,
Comma = 101,
Convert = 102,
NumpadDecimal = 103,
NumpadDivide = 104,
Equals = 105,
Grave = 106,
Kana = 107,
Kanji = 108,
LAlt = 109,
LBracket = 110,
LControl = 111,
LShift = 112,
LWin = 113,
Mail = 114,
MediaSelect = 115,
MediaStop = 116,
Minus = 117,
NumpadMultiply = 118,
Mute = 119,
MyComputer = 120,
NavigateForward = 121,
NavigateBackward = 122,
NextTrack = 123,
NoConvert = 124,
NumpadComma = 125,
NumpadEnter = 126,
NumpadEquals = 127,
OEM102 = 128,
Period = 129,
PlayPause = 130,
Power = 131,
PrevTrack = 132,
RAlt = 133,
RBracket = 134,
RControl = 135,
RShift = 136,
RWin = 137,
Semicolon = 138,
Slash = 139,
Sleep = 140,
Stop = 141,
NumpadSubtract = 142,
Sysrq = 143,
Tab = 144,
Underline = 145,
Unlabeled = 146,
VolumeDown = 147,
VolumeUp = 148,
Wake = 149,
WebBack = 150,
WebFavorites = 151,
WebForward = 152,
WebHome = 153,
WebRefresh = 154,
WebSearch = 155,
WebStop = 156,
Yen = 157,
Copy = 158,
Paste = 159,
Cut = 160,
Asterisk = 161,
Plus = 162,
}Variants§
Key1 = 0
Key2 = 1
Key3 = 2
Key4 = 3
Key5 = 4
Key6 = 5
Key7 = 6
Key8 = 7
Key9 = 8
Key0 = 9
A = 10
B = 11
C = 12
D = 13
E = 14
F = 15
G = 16
H = 17
I = 18
J = 19
K = 20
L = 21
M = 22
N = 23
O = 24
P = 25
Q = 26
R = 27
S = 28
T = 29
U = 30
V = 31
W = 32
X = 33
Y = 34
Z = 35
Escape = 36
F1 = 37
F2 = 38
F3 = 39
F4 = 40
F5 = 41
F6 = 42
F7 = 43
F8 = 44
F9 = 45
F10 = 46
F11 = 47
F12 = 48
F13 = 49
F14 = 50
F15 = 51
F16 = 52
F17 = 53
F18 = 54
F19 = 55
F20 = 56
F21 = 57
F22 = 58
F23 = 59
F24 = 60
Snapshot = 61
Scroll = 62
Pause = 63
Insert = 64
Home = 65
Delete = 66
End = 67
PageDown = 68
PageUp = 69
Left = 70
Up = 71
Right = 72
Down = 73
Backspace = 74
Return = 75
Space = 76
Compose = 77
Caret = 78
Numlock = 79
Numpad0 = 80
Numpad1 = 81
Numpad2 = 82
Numpad3 = 83
Numpad4 = 84
Numpad5 = 85
Numpad6 = 86
Numpad7 = 87
Numpad8 = 88
Numpad9 = 89
AbntC1 = 90
AbntC2 = 91
NumpadAdd = 92
Apostrophe = 93
Apps = 94
At = 95
Ax = 96
Backslash = 97
Calculator = 98
Capital = 99
Colon = 100
Comma = 101
Convert = 102
NumpadDecimal = 103
NumpadDivide = 104
Equals = 105
Grave = 106
Kana = 107
Kanji = 108
LAlt = 109
LBracket = 110
LControl = 111
LShift = 112
LWin = 113
Mail = 114
MediaSelect = 115
MediaStop = 116
Minus = 117
NumpadMultiply = 118
Mute = 119
MyComputer = 120
NextTrack = 123
NoConvert = 124
NumpadComma = 125
NumpadEnter = 126
NumpadEquals = 127
OEM102 = 128
Period = 129
PlayPause = 130
Power = 131
PrevTrack = 132
RAlt = 133
RBracket = 134
RControl = 135
RShift = 136
RWin = 137
Semicolon = 138
Slash = 139
Sleep = 140
Stop = 141
NumpadSubtract = 142
Sysrq = 143
Tab = 144
Underline = 145
Unlabeled = 146
VolumeDown = 147
VolumeUp = 148
Wake = 149
WebBack = 150
WebFavorites = 151
WebForward = 152
WebHome = 153
WebRefresh = 154
WebSearch = 155
WebStop = 156
Yen = 157
Copy = 158
Paste = 159
Cut = 160
Asterisk = 161
Plus = 162
Trait Implementations§
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> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> MessageData for T
impl<T> MessageData for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PropertyValue for Twhere
T: Debug + 'static,
impl<T> PropertyValue for Twhere
T: Debug + 'static,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.