Enum console::Key [] [src]

pub enum Key {
    Unknown,
    ArrowLeft,
    ArrowRight,
    ArrowUp,
    ArrowDown,
    Enter,
    Escape,
    Char(char),
    // some variants omitted
}

Key mapping

This is an incomplete mapping of keys that are supported for reading from the keyboard.

Variants

Trait Implementations

impl Copy for Key
[src]

impl Clone for Key
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Key
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Key
[src]

impl Debug for Key
[src]

Formats the value using the given formatter.