Enum keyboard_types::KeyState[][src]

pub enum KeyState {
    Down,
    Up,
}

Describes the state the key is in.

Variants

Key is pressed.

In JS: "keydown" event firing.

Key is released.

In JS: "keyup event".

Trait Implementations

impl Copy for KeyState
[src]

impl Clone for KeyState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for KeyState
[src]

Formats the value using the given formatter. Read more

impl Eq for KeyState
[src]

impl PartialEq for KeyState
[src]

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

This method tests for !=.

impl Display for KeyState
[src]

Formats the value using the given formatter. Read more

impl Default for KeyState
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for KeyState

impl Sync for KeyState