pub enum Key {
Show 233 variants
Unknown = 0,
Backspace = 8,
Tab = 9,
Clear = 12,
Return = 13,
Pause = 19,
Escape = 27,
Space = 32,
Exclaim = 33,
Quotedbl = 34,
Hash = 35,
Dollar = 36,
Ampersand = 38,
Quote = 39,
LeftParen = 40,
RightParen = 41,
Asterisk = 42,
Plus = 43,
Comma = 44,
Minus = 45,
Period = 46,
Slash = 47,
Num0 = 48,
Num1 = 49,
Num2 = 50,
Num3 = 51,
Num4 = 52,
Num5 = 53,
Num6 = 54,
Num7 = 55,
Num8 = 56,
Num9 = 57,
Colon = 58,
Semicolon = 59,
Less = 60,
Equals = 61,
Greater = 62,
Question = 63,
At = 64,
LeftBracket = 91,
Backslash = 92,
RightBracket = 93,
Caret = 94,
Underscore = 95,
Backquote = 96,
A = 97,
B = 98,
C = 99,
D = 100,
E = 101,
F = 102,
G = 103,
H = 104,
I = 105,
J = 106,
K = 107,
L = 108,
M = 109,
N = 110,
O = 111,
P = 112,
Q = 113,
R = 114,
S = 115,
T = 116,
U = 117,
V = 118,
W = 119,
X = 120,
Y = 121,
Z = 122,
Delete = 127,
World0 = 160,
World1 = 161,
World2 = 162,
World3 = 163,
World4 = 164,
World5 = 165,
World6 = 166,
World7 = 167,
World8 = 168,
World9 = 169,
World10 = 170,
World11 = 171,
World12 = 172,
World13 = 173,
World14 = 174,
World15 = 175,
World16 = 176,
World17 = 177,
World18 = 178,
World19 = 179,
World20 = 180,
World21 = 181,
World22 = 182,
World23 = 183,
World24 = 184,
World25 = 185,
World26 = 186,
World27 = 187,
World28 = 188,
World29 = 189,
World30 = 190,
World31 = 191,
World32 = 192,
World33 = 193,
World34 = 194,
World35 = 195,
World36 = 196,
World37 = 197,
World38 = 198,
World39 = 199,
World40 = 200,
World41 = 201,
World42 = 202,
World43 = 203,
World44 = 204,
World45 = 205,
World46 = 206,
World47 = 207,
World48 = 208,
World49 = 209,
World50 = 210,
World51 = 211,
World52 = 212,
World53 = 213,
World54 = 214,
World55 = 215,
World56 = 216,
World57 = 217,
World58 = 218,
World59 = 219,
World60 = 220,
World61 = 221,
World62 = 222,
World63 = 223,
World64 = 224,
World65 = 225,
World66 = 226,
World67 = 227,
World68 = 228,
World69 = 229,
World70 = 230,
World71 = 231,
World72 = 232,
World73 = 233,
World74 = 234,
World75 = 235,
World76 = 236,
World77 = 237,
World78 = 238,
World79 = 239,
World80 = 240,
World81 = 241,
World82 = 242,
World83 = 243,
World84 = 244,
World85 = 245,
World86 = 246,
World87 = 247,
World88 = 248,
World89 = 249,
World90 = 250,
World91 = 251,
World92 = 252,
World93 = 253,
World94 = 254,
World95 = 255,
Kp0 = 256,
Kp1 = 257,
Kp2 = 258,
Kp3 = 259,
Kp4 = 260,
Kp5 = 261,
Kp6 = 262,
Kp7 = 263,
Kp8 = 264,
Kp9 = 265,
KpPeriod = 266,
KpDivide = 267,
KpMultiply = 268,
KpMinus = 269,
KpPlus = 270,
KpEnter = 271,
KpEquals = 272,
Up = 273,
Down = 274,
Right = 275,
Left = 276,
Insert = 277,
Home = 278,
End = 279,
PageUp = 280,
PageDown = 281,
F1 = 282,
F2 = 283,
F3 = 284,
F4 = 285,
F5 = 286,
F6 = 287,
F7 = 288,
F8 = 289,
F9 = 290,
F10 = 291,
F11 = 292,
F12 = 293,
F13 = 294,
F14 = 295,
F15 = 296,
NumLock = 300,
CapsLock = 301,
ScrolLock = 302,
RShift = 303,
LShift = 304,
RCtrl = 305,
LCtrl = 306,
RAlt = 307,
LAlt = 308,
RMeta = 309,
LMeta = 310,
LSuper = 311,
RSuper = 312,
Mode = 313,
Compose = 314,
Help = 315,
Print = 316,
SysReq = 317,
Break = 318,
Menu = 319,
Power = 320,
Euro = 321,
Undo = 322,
Last = 323,
}
Variants§
Unknown = 0
Backspace = 8
Tab = 9
Clear = 12
Return = 13
Pause = 19
Escape = 27
Space = 32
Exclaim = 33
Quotedbl = 34
Hash = 35
Dollar = 36
Ampersand = 38
Quote = 39
LeftParen = 40
RightParen = 41
Asterisk = 42
Plus = 43
Comma = 44
Minus = 45
Period = 46
Slash = 47
Num0 = 48
Num1 = 49
Num2 = 50
Num3 = 51
Num4 = 52
Num5 = 53
Num6 = 54
Num7 = 55
Num8 = 56
Num9 = 57
Colon = 58
Semicolon = 59
Less = 60
Equals = 61
Greater = 62
Question = 63
At = 64
LeftBracket = 91
Backslash = 92
RightBracket = 93
Caret = 94
Underscore = 95
Backquote = 96
A = 97
B = 98
C = 99
D = 100
E = 101
F = 102
G = 103
H = 104
I = 105
J = 106
K = 107
L = 108
M = 109
N = 110
O = 111
P = 112
Q = 113
R = 114
S = 115
T = 116
U = 117
V = 118
W = 119
X = 120
Y = 121
Z = 122
Delete = 127
World0 = 160
World1 = 161
World2 = 162
World3 = 163
World4 = 164
World5 = 165
World6 = 166
World7 = 167
World8 = 168
World9 = 169
World10 = 170
World11 = 171
World12 = 172
World13 = 173
World14 = 174
World15 = 175
World16 = 176
World17 = 177
World18 = 178
World19 = 179
World20 = 180
World21 = 181
World22 = 182
World23 = 183
World24 = 184
World25 = 185
World26 = 186
World27 = 187
World28 = 188
World29 = 189
World30 = 190
World31 = 191
World32 = 192
World33 = 193
World34 = 194
World35 = 195
World36 = 196
World37 = 197
World38 = 198
World39 = 199
World40 = 200
World41 = 201
World42 = 202
World43 = 203
World44 = 204
World45 = 205
World46 = 206
World47 = 207
World48 = 208
World49 = 209
World50 = 210
World51 = 211
World52 = 212
World53 = 213
World54 = 214
World55 = 215
World56 = 216
World57 = 217
World58 = 218
World59 = 219
World60 = 220
World61 = 221
World62 = 222
World63 = 223
World64 = 224
World65 = 225
World66 = 226
World67 = 227
World68 = 228
World69 = 229
World70 = 230
World71 = 231
World72 = 232
World73 = 233
World74 = 234
World75 = 235
World76 = 236
World77 = 237
World78 = 238
World79 = 239
World80 = 240
World81 = 241
World82 = 242
World83 = 243
World84 = 244
World85 = 245
World86 = 246
World87 = 247
World88 = 248
World89 = 249
World90 = 250
World91 = 251
World92 = 252
World93 = 253
World94 = 254
World95 = 255
Kp0 = 256
Kp1 = 257
Kp2 = 258
Kp3 = 259
Kp4 = 260
Kp5 = 261
Kp6 = 262
Kp7 = 263
Kp8 = 264
Kp9 = 265
KpPeriod = 266
KpDivide = 267
KpMultiply = 268
KpMinus = 269
KpPlus = 270
KpEnter = 271
KpEquals = 272
Up = 273
Down = 274
Right = 275
Left = 276
Insert = 277
Home = 278
End = 279
PageUp = 280
PageDown = 281
F1 = 282
F2 = 283
F3 = 284
F4 = 285
F5 = 286
F6 = 287
F7 = 288
F8 = 289
F9 = 290
F10 = 291
F11 = 292
F12 = 293
F13 = 294
F14 = 295
F15 = 296
NumLock = 300
CapsLock = 301
ScrolLock = 302
RShift = 303
LShift = 304
RCtrl = 305
LCtrl = 306
RAlt = 307
LAlt = 308
RMeta = 309
LMeta = 310
LSuper = 311
RSuper = 312
Mode = 313
Compose = 314
Help = 315
Print = 316
SysReq = 317
Break = 318
Menu = 319
Power = 320
Euro = 321
Undo = 322
Last = 323
Trait Implementations§
Source§impl FromPrimitive for Key
impl FromPrimitive for Key
Source§fn from_i64(n: i64) -> Option<Key>
fn from_i64(n: i64) -> Option<Key>
Converts an
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u64(n: u64) -> Option<Key>
fn from_u64(n: u64) -> Option<Key>
Converts an
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§impl Ord for Key
impl Ord for Key
Source§impl PartialOrd for Key
impl PartialOrd for Key
impl Copy for Key
impl Eq 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 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