Enum gate::KeyCode [−][src]
#[repr(u8)]pub enum KeyCode { 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, Num0, Num1, Num2, Num3, Num4, Num5, Num6, Num7, Num8, Num9, Right, Left, Down, Up, Return, Space, Backspace, Delete, MouseLeft, MouseRight, MouseMiddle, }
Enum for keyboard keys and mouse buttons.
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
Num0
Num1
Num2
Num3
Num4
Num5
Num6
Num7
Num8
Num9
Right
Left
Down
Up
Return
Space
Backspace
Delete
MouseLeft
MouseRight
MouseMiddle
Trait Implementations
impl Debug for KeyCode
[src]
impl Debug for KeyCode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for KeyCode
[src]
impl Copy for KeyCode
impl Clone for KeyCode
[src]
impl Clone for KeyCode
fn clone(&self) -> KeyCode
[src]
fn clone(&self) -> KeyCode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for KeyCode
[src]
impl PartialEq for KeyCode
fn eq(&self, other: &KeyCode) -> bool
[src]
fn eq(&self, other: &KeyCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for KeyCode
[src]
impl Eq for KeyCode
impl Hash for KeyCode
[src]
impl Hash for KeyCode