Enum TCOD_keycode_t

Source
#[repr(u32)]
pub enum TCOD_keycode_t {
Show 67 variants TCODK_NONE = 0, TCODK_ESCAPE = 1, TCODK_BACKSPACE = 2, TCODK_TAB = 3, TCODK_ENTER = 4, TCODK_SHIFT = 5, TCODK_CONTROL = 6, TCODK_ALT = 7, TCODK_PAUSE = 8, TCODK_CAPSLOCK = 9, TCODK_PAGEUP = 10, TCODK_PAGEDOWN = 11, TCODK_END = 12, TCODK_HOME = 13, TCODK_UP = 14, TCODK_LEFT = 15, TCODK_RIGHT = 16, TCODK_DOWN = 17, TCODK_PRINTSCREEN = 18, TCODK_INSERT = 19, TCODK_DELETE = 20, TCODK_LWIN = 21, TCODK_RWIN = 22, TCODK_APPS = 23, TCODK_0 = 24, TCODK_1 = 25, TCODK_2 = 26, TCODK_3 = 27, TCODK_4 = 28, TCODK_5 = 29, TCODK_6 = 30, TCODK_7 = 31, TCODK_8 = 32, TCODK_9 = 33, TCODK_KP0 = 34, TCODK_KP1 = 35, TCODK_KP2 = 36, TCODK_KP3 = 37, TCODK_KP4 = 38, TCODK_KP5 = 39, TCODK_KP6 = 40, TCODK_KP7 = 41, TCODK_KP8 = 42, TCODK_KP9 = 43, TCODK_KPADD = 44, TCODK_KPSUB = 45, TCODK_KPDIV = 46, TCODK_KPMUL = 47, TCODK_KPDEC = 48, TCODK_KPENTER = 49, TCODK_F1 = 50, TCODK_F2 = 51, TCODK_F3 = 52, TCODK_F4 = 53, TCODK_F5 = 54, TCODK_F6 = 55, TCODK_F7 = 56, TCODK_F8 = 57, TCODK_F9 = 58, TCODK_F10 = 59, TCODK_F11 = 60, TCODK_F12 = 61, TCODK_NUMLOCK = 62, TCODK_SCROLLLOCK = 63, TCODK_SPACE = 64, TCODK_CHAR = 65, TCODK_TEXT = 66,
}

Variants§

§

TCODK_NONE = 0

§

TCODK_ESCAPE = 1

§

TCODK_BACKSPACE = 2

§

TCODK_TAB = 3

§

TCODK_ENTER = 4

§

TCODK_SHIFT = 5

§

TCODK_CONTROL = 6

§

TCODK_ALT = 7

§

TCODK_PAUSE = 8

§

TCODK_CAPSLOCK = 9

§

TCODK_PAGEUP = 10

§

TCODK_PAGEDOWN = 11

§

TCODK_END = 12

§

TCODK_HOME = 13

§

TCODK_UP = 14

§

TCODK_LEFT = 15

§

TCODK_RIGHT = 16

§

TCODK_DOWN = 17

§

TCODK_PRINTSCREEN = 18

§

TCODK_INSERT = 19

§

TCODK_DELETE = 20

§

TCODK_LWIN = 21

§

TCODK_RWIN = 22

§

TCODK_APPS = 23

§

TCODK_0 = 24

§

TCODK_1 = 25

§

TCODK_2 = 26

§

TCODK_3 = 27

§

TCODK_4 = 28

§

TCODK_5 = 29

§

TCODK_6 = 30

§

TCODK_7 = 31

§

TCODK_8 = 32

§

TCODK_9 = 33

§

TCODK_KP0 = 34

§

TCODK_KP1 = 35

§

TCODK_KP2 = 36

§

TCODK_KP3 = 37

§

TCODK_KP4 = 38

§

TCODK_KP5 = 39

§

TCODK_KP6 = 40

§

TCODK_KP7 = 41

§

TCODK_KP8 = 42

§

TCODK_KP9 = 43

§

TCODK_KPADD = 44

§

TCODK_KPSUB = 45

§

TCODK_KPDIV = 46

§

TCODK_KPMUL = 47

§

TCODK_KPDEC = 48

§

TCODK_KPENTER = 49

§

TCODK_F1 = 50

§

TCODK_F2 = 51

§

TCODK_F3 = 52

§

TCODK_F4 = 53

§

TCODK_F5 = 54

§

TCODK_F6 = 55

§

TCODK_F7 = 56

§

TCODK_F8 = 57

§

TCODK_F9 = 58

§

TCODK_F10 = 59

§

TCODK_F11 = 60

§

TCODK_F12 = 61

§

TCODK_NUMLOCK = 62

§

TCODK_SCROLLLOCK = 63

§

TCODK_SPACE = 64

§

TCODK_CHAR = 65

§

TCODK_TEXT = 66

Trait Implementations§

Source§

impl Clone for TCOD_keycode_t

Source§

fn clone(&self) -> TCOD_keycode_t

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 Debug for TCOD_keycode_t

Source§

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

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

impl Hash for TCOD_keycode_t

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TCOD_keycode_t

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for TCOD_keycode_t

Source§

impl Eq for TCOD_keycode_t

Source§

impl StructuralPartialEq for TCOD_keycode_t

Auto Trait Implementations§

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.