pub enum InputEvent {
None,
Char(char),
Backspace,
Enter,
Tab,
UpArrow,
DownArrow,
DoubleEsc,
}Expand description
Logical input event from terminal.
Variants§
None
No event (accumulating sequence)
Char(char)
Regular character typed
Backspace
Backspace key (ASCII BS or DEL)
Enter
Enter key (line feed or carriage return)
Tab
Tab key
UpArrow
Up arrow key (history previous)
DownArrow
Down arrow key (history next)
DoubleEsc
Double ESC pressed
Trait Implementations§
Source§impl Clone for InputEvent
impl Clone for InputEvent
Source§fn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputEvent
impl Debug for InputEvent
Source§impl PartialEq for InputEvent
impl PartialEq for InputEvent
impl Copy for InputEvent
impl Eq for InputEvent
impl StructuralPartialEq for InputEvent
Auto Trait Implementations§
impl Freeze for InputEvent
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnsafeUnpin for InputEvent
impl UnwindSafe for InputEvent
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