[][src]Struct chip_8::keypad::Keypad

pub struct Keypad { /* fields omitted */ }

16-key hexadecimal keypad

Key layout

1 2 3 C
4 5 6 D
7 8 9 E
A 0 B F

Implementations

impl Keypad[src]

#[must_use]pub fn new() -> Self[src]

Creates a new instance with default state for each key

Trait Implementations

impl Clone for Keypad[src]

impl Copy for Keypad[src]

impl Debug for Keypad[src]

impl Default for Keypad[src]

impl Eq for Keypad[src]

impl Index<Key> for Keypad[src]

type Output = KeyState

The returned type after indexing.

impl IndexMut<Key> for Keypad[src]

impl PartialEq<Keypad> for Keypad[src]

impl StructuralEq for Keypad[src]

impl StructuralPartialEq for Keypad[src]

Auto Trait Implementations

impl RefUnwindSafe for Keypad

impl Send for Keypad

impl Sync for Keypad

impl Unpin for Keypad

impl UnwindSafe for Keypad

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