[][src]Enum crosstermion::input::Key

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

A set of possible key presses, equivalent to the one in termion@1.5.5::event::Key

Variants

Backspace
Left
Right
Up
Down
Home
End
PageUp
PageDown
BackTab
Delete
Insert
F(u8)
Char(char)
Alt(char)
Ctrl(char)
Null
Esc

Trait Implementations

impl Clone for Key[src]

impl Copy for Key[src]

impl Debug for Key[src]

impl TryFrom<Key> for Key[src]

Convert from termion::event::Key

type Error = Key

The type returned in the event of a conversion error.

impl TryFrom<KeyEvent> for Key[src]

Convert from crossterm::event::KeyEvent

type Error = KeyEvent

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.