Enum textmode::Key [−][src]
pub enum Key {
}
Expand description
Type representing a keypress.
Variants
String(String)
Tuple Fields of String
0: String
Char(char)
Tuple Fields of Char
0: char
Byte(u8)
Tuple Fields of Byte
0: u8
Ctrl(u8)
The associated value will be a byte corresponding to the lowercase
letter for the control code. For instance, ^A
will be Ctrl(b'a')
.
Tuple Fields of Ctrl
0: u8
Meta(u8)
Tuple Fields of Meta
0: u8
F(u8)
The associated value will be the number corresponding to the F
key.
For instance, F1
will be F(1)
.
Tuple Fields of F
0: u8
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Key
impl UnwindSafe for Key
Blanket Implementations
Mutably borrows from an owned value. Read more