Enum witas::VirtualKey
source · pub enum VirtualKey {
Show 99 variants
Esc,
Tab,
CapsLock,
Shift,
Ctrl,
Alt,
BackSpace,
Enter,
Space,
PrintScreen,
ScrollLock,
Pause,
Insert,
Delete,
Home,
End,
PageUp,
PageDown,
Up,
Down,
Left,
Right,
Key1,
Key2,
Key3,
Key4,
Key5,
Key6,
Key7,
Key8,
Key9,
Key0,
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,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
F13,
F14,
F15,
F16,
F17,
F18,
F19,
F20,
F21,
F22,
F23,
F24,
NumLock,
Num1,
Num2,
Num3,
Num4,
Num5,
Num6,
Num7,
Num8,
Num9,
Num0,
NumAdd,
NumSub,
NumMul,
NumDiv,
NumDecimal,
Other(u32),
}
Expand description
Describes a key name of a keyboard.
Variants§
Esc
Tab
CapsLock
Shift
Ctrl
Alt
BackSpace
Enter
Space
PrintScreen
ScrollLock
Pause
Insert
Delete
Home
End
PageUp
PageDown
Up
Down
Left
Right
Key1
Key2
Key3
Key4
Key5
Key6
Key7
Key8
Key9
Key0
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
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F20
F21
F22
F23
F24
NumLock
Num1
Num2
Num3
Num4
Num5
Num6
Num7
Num8
Num9
Num0
NumAdd
NumSub
NumMul
NumDiv
NumDecimal
Other(u32)
Trait Implementations§
source§impl Clone for VirtualKey
impl Clone for VirtualKey
source§fn clone(&self) -> VirtualKey
fn clone(&self) -> VirtualKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VirtualKey
impl Debug for VirtualKey
source§impl<'de> Deserialize<'de> for VirtualKey
impl<'de> Deserialize<'de> for VirtualKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for VirtualKey
impl Display for VirtualKey
source§impl Hash for VirtualKey
impl Hash for VirtualKey
source§impl PartialEq<VirtualKey> for VirtualKey
impl PartialEq<VirtualKey> for VirtualKey
source§fn eq(&self, other: &VirtualKey) -> bool
fn eq(&self, other: &VirtualKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VirtualKey
impl Serialize for VirtualKey
impl Copy for VirtualKey
impl Eq for VirtualKey
impl StructuralEq for VirtualKey
impl StructuralPartialEq for VirtualKey
Auto Trait Implementations§
impl RefUnwindSafe for VirtualKey
impl Send for VirtualKey
impl Sync for VirtualKey
impl Unpin for VirtualKey
impl UnwindSafe for VirtualKey
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