Enum termion::event::Key
[−]
[src]
pub enum Key { Backspace, Left, Right, Up, Down, Home, End, PageUp, PageDown, Delete, Insert, F(u8), Char(char), Alt(char), Ctrl(char), Null, Esc, // some variants omitted }
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 Debug for Key
[src]
impl Debug for Key
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Key
[src]
impl Copy for Key
impl Clone for Key
[src]
impl Clone for Key
fn clone(&self) -> Key
[src]
fn clone(&self) -> Key
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Key
[src]
impl PartialEq for Key
fn eq(&self, __arg_0: &Key) -> bool
[src]
fn eq(&self, __arg_0: &Key) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Key) -> bool
[src]
fn ne(&self, __arg_0: &Key) -> bool
This method tests for !=
.
impl Eq for Key
[src]
impl Eq for Key
impl Hash for Key
[src]
impl Hash for Key