pub enum Code {
Show 96 variants
A,
B,
C,
D,
E,
F,
G,
H,
I,
J,
K,
L,
M,
N,
O,
P,
Q,
R,
S,
T,
U,
V,
W,
X,
Y,
Z,
Key0,
Key1,
Key2,
Key3,
Key4,
Key5,
Key6,
Key7,
Key8,
Key9,
Numpad0,
Numpad1,
Numpad2,
Numpad3,
Numpad4,
Numpad5,
Numpad6,
Numpad7,
Numpad8,
Numpad9,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
Minus,
Equal,
BracketLeft,
BracketRight,
Semicolon,
Apostrophe,
Backtick,
Backslash,
Comma,
Period,
Slash,
NumStar,
Left,
Right,
Up,
Down,
Escape,
Tab,
Space,
Backspace,
Enter,
Insert,
Delete,
Home,
End,
PageUp,
PageDown,
CapsLock,
NumLock,
ScrollLock,
LShift,
LCtrl,
LAlt,
LMeta,
RShift,
RCtrl,
RAlt,
RMeta,
}
Expand description
A keyboard key-code.
Variants§
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Key0
Key1
Key2
Key3
Key4
Key5
Key6
Key7
Key8
Key9
Numpad0
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
Numpad8
Numpad9
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
Minus
Equal
BracketLeft
BracketRight
Semicolon
Apostrophe
Backtick
Backslash
Comma
Period
Slash
NumStar
Left
Right
Up
Down
Escape
Tab
Space
Backspace
Enter
Insert
Delete
Home
End
PageUp
PageDown
CapsLock
NumLock
ScrollLock
LShift
LCtrl
LAlt
LMeta
RShift
RCtrl
RAlt
RMeta
Implementations§
Trait Implementations§
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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