Enum tic80::Key

source ·
pub enum Key {
Show 95 variants A = 1, B = 2, C = 3, D = 4, E = 5, F = 6, G = 7, H = 8, I = 9, J = 10, K = 11, L = 12, M = 13, N = 14, O = 15, P = 16, Q = 17, R = 18, S = 19, T = 20, U = 21, V = 22, W = 23, X = 24, Y = 25, Z = 26, Num0 = 27, Num1 = 28, Num2 = 29, Num3 = 30, Num4 = 31, Num5 = 32, Num6 = 33, Num7 = 34, Num8 = 35, Num9 = 36, Minus = 37, Equals = 38, LeftBrack = 39, RightBracket = 40, Backslash = 41, Semicolon = 42, Apostrophe = 43, Grave = 44, Gomma = 45, Period = 46, Slash = 47, Space = 48, Tab = 49, Return = 50, Backspace = 51, Delete = 52, Insert = 53, PageUp = 54, PageDown = 55, Home = 56, End = 57, Up = 58, Down = 59, Left = 60, Right = 61, CapsLock = 62, Ctrl = 63, Shift = 64, Alt = 65, Esc = 66, F1 = 67, F2 = 68, F3 = 69, F4 = 70, F5 = 71, F6 = 72, F7 = 73, F8 = 74, F9 = 75, F10 = 76, F11 = 77, F12 = 78, NumPad0 = 79, NumPad1 = 80, NumPad2 = 81, NumPad3 = 82, NumPad4 = 83, NumPad5 = 84, NumPad6 = 85, NumPad7 = 86, NumPad8 = 87, NumPad9 = 88, NumPadPlus = 89, NumPadMinus = 90, NumPadMultiply = 91, NumPadDivide = 92, NumPadEnter = 93, NumPadPeriod = 94, Reserved = 95,
}

Variants§

§

A = 1

§

B = 2

§

C = 3

§

D = 4

§

E = 5

§

F = 6

§

G = 7

§

H = 8

§

I = 9

§

J = 10

§

K = 11

§

L = 12

§

M = 13

§

N = 14

§

O = 15

§

P = 16

§

Q = 17

§

R = 18

§

S = 19

§

T = 20

§

U = 21

§

V = 22

§

W = 23

§

X = 24

§

Y = 25

§

Z = 26

§

Num0 = 27

§

Num1 = 28

§

Num2 = 29

§

Num3 = 30

§

Num4 = 31

§

Num5 = 32

§

Num6 = 33

§

Num7 = 34

§

Num8 = 35

§

Num9 = 36

§

Minus = 37

§

Equals = 38

§

LeftBrack = 39

§

RightBracket = 40

§

Backslash = 41

§

Semicolon = 42

§

Apostrophe = 43

§

Grave = 44

§

Gomma = 45

§

Period = 46

§

Slash = 47

§

Space = 48

§

Tab = 49

§

Return = 50

§

Backspace = 51

§

Delete = 52

§

Insert = 53

§

PageUp = 54

§

PageDown = 55

§

Home = 56

§

End = 57

§

Up = 58

§

Down = 59

§

Left = 60

§

Right = 61

§

CapsLock = 62

§

Ctrl = 63

§

Shift = 64

§

Alt = 65

§

Esc = 66

§

F1 = 67

§

F2 = 68

§

F3 = 69

§

F4 = 70

§

F5 = 71

§

F6 = 72

§

F7 = 73

§

F8 = 74

§

F9 = 75

§

F10 = 76

§

F11 = 77

§

F12 = 78

§

NumPad0 = 79

§

NumPad1 = 80

§

NumPad2 = 81

§

NumPad3 = 82

§

NumPad4 = 83

§

NumPad5 = 84

§

NumPad6 = 85

§

NumPad7 = 86

§

NumPad8 = 87

§

NumPad9 = 88

§

NumPadPlus = 89

§

NumPadMinus = 90

§

NumPadMultiply = 91

§

NumPadDivide = 92

§

NumPadEnter = 93

§

NumPadPeriod = 94

§

Reserved = 95

Trait Implementations§

source§

impl Bitsized for Key

§

type ArbitraryInt = u8

source§

const BITS: usize = 8usize

source§

const MAX: Self::ArbitraryInt = {transmute(0xff): <Key as bilge::Bitsized>::ArbitraryInt}

source§

impl Debug for Key

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Key> for u8

source§

fn from(enum_value: Key) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Key

source§

fn from(number: u8) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Key

source§

fn eq(&self, other: &Key) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Key

Auto Trait Implementations§

§

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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.
source§

impl<T> Filled for T
where T: Bitsized + From<<T as Bitsized>::ArbitraryInt>,