Enum endbasic_std::console::Key [−][src]
pub enum Key { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Backspace, CarriageReturn, Char(char), Eof, Escape, Interrupt, NewLine, Unknown(String), }
Expand description
Decoded key presses as returned by the console.
Variants
The cursor down key.
The cursor left key.
The cursor right key.
The cursor up key.
Deletes the previous character.
Accepts the current line.
Char(char)
A printable character.
Indicates a request for termination (e.g. Ctrl-D
).
The escape key.
Indicates a request for interrupt (e.g. Ctrl-C
).
Accepts the current line.
Unknown(String)
An unknown character or sequence. The text describes what went wrong.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Key
impl UnwindSafe for Key
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V