Enum rustyline::KeyCode[][src]

#[non_exhaustive]pub enum KeyCode {
    UnknownEscSeq,
    Backspace,
    BackTab,
    BracketedPasteStart,
    BracketedPasteEnd,
    Char(char),
    Delete,
    Down,
    End,
    Enter,
    Esc,
    F(u8),
    Home,
    Insert,
    Left,
    Null,
    PageDown,
    PageUp,
    Right,
    Tab,
    Up,
}

Input key pressed

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownEscSeq

Unsupported escape sequence (on unix platform)

Backspace

⌫ or Ctrl-H

BackTab

⇤ (usually Shift-Tab)

BracketedPasteStart

Paste (on unix platform)

BracketedPasteEnd

Paste (on unix platform)

Char(char)

Single char

Delete

Down

↓ arrow key

End

Enter

↵ or Ctrl-M

Esc

Escape or Ctrl-[

F(u8)

Function key

Home

Insert

Insert key

Left

← arrow key

Null

\0

PageDown

PageUp

Right

→ arrow key

Tab

⇥ or Ctrl-I

Up

↑ arrow key

Trait Implementations

impl Clone for KeyCode[src]

impl Copy for KeyCode[src]

impl Debug for KeyCode[src]

impl Eq for KeyCode[src]

impl Hash for KeyCode[src]

impl PartialEq<KeyCode> for KeyCode[src]

impl StructuralEq for KeyCode[src]

impl StructuralPartialEq for KeyCode[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyCode

impl Send for KeyCode

impl Sync for KeyCode

impl Unpin for KeyCode

impl UnwindSafe for KeyCode

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any
[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> Pointable for T

type Init = T

The type for initializers.

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.