Enum neko::pty::Key []

pub enum Key {
    Char(u64),
    Str(In),
}

Variants

Unicode characters.

Unicode strings.

Methods

impl Key

The constructor method from_utf8 returns a UTF-8 parsed Key.

The accessor method is_up returns an Option for the Up Key.

The accessor method is_down returns an Option for the down Key.

The accessor method is_right returns an Option for the right Key.

The accessor method is_left returns an Option for the left Key.

The accessor method is_delete returns an Option for the delete Key.

The accessor method is_backspace returns an Option for the backspace Key.

The accessor method is_escape returns an Option for the delete Key.

The accessor method is_end returns an Option for the delete Key.

The accessor method is_home returns an Option for the delete Key.

The accessor method is_pageup returns an Option for the Page Up Key.

The accessor method is_pagedown returns an Option for the Page Down Key.

The accessor method is_enter returns an Option for the Enter Key.

Trait Implementations

impl Copy for Key

impl Debug for Key

Formats the value using the given formatter.

impl Eq for Key

impl PartialEq<Key> for Key

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Key

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<u32> for Key

Performs the conversion.

impl From<(In, usize)> for Key

The constructor method new returns a parsed Key.