Enum yacll::input::KeyCode

source ·
pub enum KeyCode {
Show 18 variants Backspace, Enter, Left, Right, Up, Down, Home, End, PageUp, PageDown, Tab, Backtab, Delete, Insert, F(u8), Char(char), Null, Esc,
}
Expand description

Represents possible keys.

Variants

Backspace

Backspace key.

Enter

Enter key.

Left

Left arrow key.

Right

Right arrow key.

Up

Up arrow key.

Down

Down arrow key.

Home

Home key.

End

End key.

PageUp

Page up key.

PageDown

Page down key.

Tab

Tab key.

Backtab

Shift + Tab key.

Delete

Delete key.

Insert

Insert key.

F(u8)

F key.

KeyCode::F(1) represents F1 key, etc.

Char(char)

A character.

KeyCode::Char('c') represents c character, etc.

Null

Null.

Esc

Escape key.

Trait Implementations

Converts to this type from the input type.
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.