[][src]Enum chip_8::keypad::Key

#[repr(u8)]pub enum Key {
    Key0,
    Key1,
    Key2,
    Key3,
    Key4,
    Key5,
    Key6,
    Key7,
    Key8,
    Key9,
    KeyA,
    KeyB,
    KeyC,
    KeyD,
    KeyE,
    KeyF,
}

Individual key on the Keypad

Variants

Key0

Key 0

Key1

Key 1

Key2

Key 2

Key3

Key 3

Key4

Key 4

Key5

Key 5

Key6

Key 6

Key7

Key 7

Key8

Key 8

Key9

Key 9

KeyA

Key A

KeyB

Key B

KeyC

Key C

KeyD

Key D

KeyE

Key E

KeyF

Key F

Trait Implementations

impl Clone for Key[src]

impl Copy for Key[src]

impl Debug for Key[src]

impl Eq for Key[src]

impl Index<Key> for Keypad[src]

type Output = KeyState

The returned type after indexing.

impl IndexMut<Key> for Keypad[src]

impl PartialEq<Key> for Key[src]

impl StructuralEq for Key[src]

impl StructuralPartialEq for Key[src]

impl TryFrom<u8> for Key[src]

type Error = Chip8Error

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,