Enum gate::input::KeyEvent [] [src]

pub enum KeyEvent {
    Pressed,
    Released,
}

Events related to a keyboard key.

Variants

Key is pressed down.

A pressed down key is released.

Trait Implementations

impl Debug for KeyEvent
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for KeyEvent
[src]

impl Clone for KeyEvent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for KeyEvent
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for KeyEvent
[src]

impl Hash for KeyEvent
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for KeyEvent

impl Sync for KeyEvent