Enum termion::event::Key [] [src]

pub enum Key {
    Backspace,
    Left,
    Right,
    Up,
    Down,
    Home,
    End,
    PageUp,
    PageDown,
    Delete,
    Insert,
    F(u8),
    Char(char),
    Alt(char),
    Ctrl(char),
    Null,
    Esc,
    // some variants omitted
}

A key.

Variants

Backspace.

Left arrow.

Right arrow.

Up arrow.

Down arrow.

Home key.

End key.

Page Up key.

Page Down key.

Delete key.

Insert key.

Function keys.

Only function keys 1 through 12 are supported.

Normal character.

Alt modified character.

Ctrl modified character.

Note that certain keys may not be modifiable with ctrl, due to limitations of terminals.

Null byte.

Esc key.

Trait Implementations

impl Debug for Key
[src]

Formats the value using the given formatter. Read more

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 Hash for Key
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Key

impl Sync for Key