Enum keyboard_types::KeyState [−][src]
pub enum KeyState { Down, Up, }
Describes the state the key is in.
Variants
Down
Key is pressed.
In JS: "keydown" event firing.
Up
Key is released.
In JS: "keyup event".
Trait Implementations
impl Copy for KeyState
[src]
impl Copy for KeyState
impl Clone for KeyState
[src]
impl Clone for KeyState
fn clone(&self) -> KeyState
[src]
fn clone(&self) -> KeyState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for KeyState
[src]
impl Debug for KeyState
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for KeyState
[src]
impl Eq for KeyState
impl PartialEq for KeyState
[src]
impl PartialEq for KeyState
fn eq(&self, other: &KeyState) -> bool
[src]
fn eq(&self, other: &KeyState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Display for KeyState
[src]
impl Display for KeyState
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for KeyState
[src]
impl Default for KeyState