pub enum Action {
Char(char),
Enter,
Backspace,
Delete,
Tab,
Escape,
Up,
Down,
Left,
Right,
F(u8),
}Expand description
What a key press means once legends and layers are applied.
Variants§
Char(char)
A printable character.
Enter
Enter / Return.
Backspace
Delete the character before the cursor.
Delete
Delete the character after the cursor (Fn + Backspace).
Tab
Tab.
Escape
Escape (Fn + `).
Up
Cursor up (Fn + ;).
Down
Cursor down (Fn + .).
Left
Cursor left (Fn + ,).
Right
Cursor right (Fn + /).
F(u8)
Function key F1..=F12 (Fn + 1 … Fn + =).
Trait Implementations§
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)