Enum Key

Source
#[repr(u8)]
pub enum Key {
Show 120 variants A = 4, B = 5, C = 6, D = 7, E = 8, F = 9, G = 10, H = 11, I = 12, J = 13, K = 14, L = 15, M = 16, N = 17, O = 18, P = 19, Q = 20, R = 21, S = 22, T = 23, U = 24, V = 25, W = 26, X = 27, Y = 28, Z = 29, N1 = 30, N2 = 31, N3 = 32, N4 = 33, N5 = 34, N6 = 35, N7 = 36, N8 = 37, N9 = 38, N0 = 39, Enter = 40, Esc = 41, BackSpace = 42, Tab = 43, Space = 44, Minus = 45, Equal = 46, SquareBracketLeft = 47, SquareBracketRight = 48, BackSlash = 49, BackSlash_ = 50, Column = 51, Quote = 52, BackTick = 53, Comma = 54, Period = 55, Slash = 56, Cap = 57, F1 = 58, F2 = 59, F3 = 60, F4 = 61, F5 = 62, F6 = 63, F7 = 64, F8 = 65, F9 = 66, F10 = 67, F11 = 68, F12 = 69, Snapshot = 70, ScrollLock = 71, Pause = 72, Insert = 73, Home = 74, PageUp = 75, Del = 76, End = 77, PageDown = 78, Right = 79, Left = 80, Down = 81, Up = 82, Numlock = 83, NumpadDiv = 84, NumpadMul = 85, NumpadMinus = 86, NumpadPlus = 87, NumpadEnter = 88, Numpad1 = 89, Numpad2 = 90, Numpad3 = 91, Numpad4 = 92, Numpad5 = 93, Numpad6 = 94, Numpad7 = 95, Numpad8 = 96, Numpad9 = 97, Numpad0 = 98, NumpadDec = 99, Apps = 101, F13 = 104, F14 = 105, F15 = 106, F16 = 107, F17 = 108, F18 = 109, F19 = 110, F20 = 111, F21 = 112, F22 = 113, F23 = 114, F24 = 115, Rwin = 140, F24_ = 148, Lctrl = 224, Lshift = 225, Lalt = 226, Lwin = 227, Rctrl = 228, Rshift = 229, Ralt = 230, Rwin_ = 231, NONE = 0,
}

Variants§

§

A = 4

§

B = 5

§

C = 6

§

D = 7

§

E = 8

§

F = 9

§

G = 10

§

H = 11

§

I = 12

§

J = 13

§

K = 14

§

L = 15

§

M = 16

§

N = 17

§

O = 18

§

P = 19

§

Q = 20

§

R = 21

§

S = 22

§

T = 23

§

U = 24

§

V = 25

§

W = 26

§

X = 27

§

Y = 28

§

Z = 29

§

N1 = 30

§

N2 = 31

§

N3 = 32

§

N4 = 33

§

N5 = 34

§

N6 = 35

§

N7 = 36

§

N8 = 37

§

N9 = 38

§

N0 = 39

§

Enter = 40

§

Esc = 41

§

BackSpace = 42

§

Tab = 43

§

Space = 44

§

Minus = 45

§

Equal = 46

§

SquareBracketLeft = 47

§

SquareBracketRight = 48

§

BackSlash = 49

§

BackSlash_ = 50

§

Column = 51

§

Quote = 52

§

BackTick = 53

§

Comma = 54

§

Period = 55

§

Slash = 56

§

Cap = 57

§

F1 = 58

§

F2 = 59

§

F3 = 60

§

F4 = 61

§

F5 = 62

§

F6 = 63

§

F7 = 64

§

F8 = 65

§

F9 = 66

§

F10 = 67

§

F11 = 68

§

F12 = 69

§

Snapshot = 70

§

ScrollLock = 71

§

Pause = 72

§

Insert = 73

§

Home = 74

§

PageUp = 75

§

Del = 76

§

End = 77

§

PageDown = 78

§

Right = 79

§

Left = 80

§

Down = 81

§

Up = 82

§

Numlock = 83

§

NumpadDiv = 84

§

NumpadMul = 85

§

NumpadMinus = 86

§

NumpadPlus = 87

§

NumpadEnter = 88

§

Numpad1 = 89

§

Numpad2 = 90

§

Numpad3 = 91

§

Numpad4 = 92

§

Numpad5 = 93

§

Numpad6 = 94

§

Numpad7 = 95

§

Numpad8 = 96

§

Numpad9 = 97

§

Numpad0 = 98

§

NumpadDec = 99

§

Apps = 101

§

F13 = 104

§

F14 = 105

§

F15 = 106

§

F16 = 107

§

F17 = 108

§

F18 = 109

§

F19 = 110

§

F20 = 111

§

F21 = 112

§

F22 = 113

§

F23 = 114

§

F24 = 115

§

Rwin = 140

§

F24_ = 148

§

Lctrl = 224

§

Lshift = 225

§

Lalt = 226

§

Lwin = 227

§

Rctrl = 228

§

Rshift = 229

§

Ralt = 230

§

Rwin_ = 231

§

NONE = 0

Trait Implementations§

Source§

impl Clone for Key

Source§

fn clone(&self) -> Key

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl From<Key> for u8

Source§

fn from(button: Key) -> Self

Converts to this type from the input type.
Source§

impl Copy 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.