pub enum Key {
Show 59 variants
Ctrl = 0,
Shift = 1,
Space = 2,
Backsspace = 3,
Enter = 4,
Alt = 5,
A = 6,
B = 7,
C = 8,
D = 9,
E = 10,
F = 11,
G = 12,
H = 13,
I = 14,
J = 15,
K = 16,
L = 17,
M = 18,
N = 19,
O = 20,
P = 21,
Q = 22,
R = 23,
S = 24,
T = 25,
U = 26,
V = 27,
W = 28,
X = 29,
Y = 30,
Z = 31,
Up = 32,
Down = 33,
Left = 34,
Right = 35,
N0 = 36,
N1 = 37,
N2 = 38,
N3 = 39,
N4 = 40,
N5 = 41,
N6 = 42,
N7 = 43,
N8 = 44,
N9 = 45,
F1 = 46,
F2 = 47,
F3 = 48,
F4 = 49,
F5 = 50,
F6 = 51,
F7 = 52,
F8 = 53,
F9 = 54,
F10 = 55,
F11 = 56,
F12 = 57,
ESC = 58,
}Variants§
Ctrl = 0
Shift = 1
Space = 2
Backsspace = 3
Enter = 4
Alt = 5
A = 6
B = 7
C = 8
D = 9
E = 10
F = 11
G = 12
H = 13
I = 14
J = 15
K = 16
L = 17
M = 18
N = 19
O = 20
P = 21
Q = 22
R = 23
S = 24
T = 25
U = 26
V = 27
W = 28
X = 29
Y = 30
Z = 31
Up = 32
Down = 33
Left = 34
Right = 35
N0 = 36
N1 = 37
N2 = 38
N3 = 39
N4 = 40
N5 = 41
N6 = 42
N7 = 43
N8 = 44
N9 = 45
F1 = 46
F2 = 47
F3 = 48
F4 = 49
F5 = 50
F6 = 51
F7 = 52
F8 = 53
F9 = 54
F10 = 55
F11 = 56
F12 = 57
ESC = 58
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
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