pub enum InputKey {
Char(char),
Enter,
Tab,
BackTab,
Up,
Down,
Left,
Right,
Backspace,
Delete,
Escape,
Space,
}Expand description
Logical key identifiers, independent of any specific UI framework.
Variants§
Char(char)
A printable character.
Enter
Enter / Return key.
Tab
Tab key.
BackTab
Shift+Tab.
Up
Arrow keys.
Down
Left
Right
Backspace
Backspace key.
Delete
Delete key.
Escape
Escape key.
Space
Space bar.
Trait Implementations§
impl Eq for InputKey
impl StructuralPartialEq for InputKey
Auto Trait Implementations§
impl Freeze for InputKey
impl RefUnwindSafe for InputKey
impl Send for InputKey
impl Sync for InputKey
impl Unpin for InputKey
impl UnsafeUnpin for InputKey
impl UnwindSafe for InputKey
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