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 Copy for Key
[src]
impl Clone for Key
[src]
fn clone(&self) -> Key
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Key
[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
This method tests for !=
.
impl Eq for Key
[src]
impl Hash for Key
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.