pub enum Key {
}
Expand description
A key.
Variants§
Backspace
Backspace.
Left
Left arrow.
Right
Right arrow.
Up
Up arrow.
Down
Down arrow.
Home
Home key.
End
End key.
PageUp
Page Up key.
PageDown
Page Down key.
Delete
Delete key.
Insert
Insert key.
F(u8)
Function keys.
Only function keys 1 through 12 are supported.
Char(char)
Normal character.
Alt(char)
Alt modified character.
Ctrl(char)
Ctrl modified character.
Note that certain keys may not be modifiable with ctrl
, due to limitations of terminals.
Null
Null byte.
Esc
Esc key.
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)