Struct termbox::KeyEvent [] [src]

pub struct KeyEvent {
    pub key: Key,
    pub ch: Option<char>,
    pub alt: bool,
}

Fields

Code for the key that was pressed by the user. See the keys module.

If the pressed key can be translated into a Unicode character, this contains the code point.

Trait Implementations

impl Clone for KeyEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for KeyEvent
[src]

impl Debug for KeyEvent
[src]

Formats the value using the given formatter.