Enum console_utils::read::Key
source · pub enum Key {
ArrowUp,
ArrowDown,
ArrowRight,
ArrowLeft,
Enter,
Tab,
Backspace,
Escape,
Char(char),
}Expand description
Key Enum
The Key enum represents different keyboard keys that can be captured by the
read_key function.
ArrowUp: Represents the arrow up key.ArrowDown: Represents the arrow down key.ArrowRight: Represents the arrow right key.ArrowLeft: Represents the arrow left key.Enter: Represents the Enter/Return key.Tab: Represents the Tab key.Backspace: Represents the Backspace key.Escape: Represents the Escape key.Char(char): Represents any printable character on the keyboard.
Variants§
Trait Implementations§
impl Eq for Key
impl StructuralEq for Key
impl StructuralPartialEq for Key
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more