#[non_exhaustive]pub enum NamedKey {
Show 21 variants
Enter,
Tab,
Space,
Backspace,
Delete,
Escape,
ArrowLeft,
ArrowRight,
ArrowUp,
ArrowDown,
Home,
End,
PageUp,
PageDown,
Insert,
Shift,
Control,
Alt,
Super,
ContextMenu,
F(u8),
}Expand description
Keys with names.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Enter
Enter or Return.
Tab
Tab.
Space
The space bar.
Backspace
Backspace.
Delete
Delete (forward).
Escape
Escape.
ArrowLeft
Left arrow.
ArrowRight
Right arrow.
ArrowUp
Up arrow.
ArrowDown
Down arrow.
Home
Home.
End
End.
PageUp
Page up.
PageDown
Page down.
Insert
Insert.
Shift
Shift.
Control
Control.
Alt
Alt (Option on macOS).
Super
The logo key: Windows, Command on macOS.
ContextMenu
The context menu key.
F(u8)
A function key: F(1) is F1.
Trait Implementations§
impl Copy for NamedKey
impl Eq for NamedKey
impl StructuralPartialEq for NamedKey
Auto Trait Implementations§
impl Freeze for NamedKey
impl RefUnwindSafe for NamedKey
impl Send for NamedKey
impl Sync for NamedKey
impl Unpin for NamedKey
impl UnsafeUnpin for NamedKey
impl UnwindSafe for NamedKey
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