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
BackspaceBackspace.
LeftLeft arrow.
RightRight arrow.
UpUp arrow.
DownDown arrow.
HomeHome key.
EndEnd key.
PageUpPage Up key.
PageDownPage Down key.
DeleteDelete key.
InsertInsert 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.
NullNull byte.
EscEsc 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: Hasher1.3.0
Feeds a slice of this type into the state provided.