Enum keyboard_types::KeyState [−][src]
pub enum KeyState {
Down,
Up,
}Describes the state the key is in.
Variants
DownKey is pressed.
In JS: "keydown" event firing.
UpKey is released.
In JS: "keyup event".
Trait Implementations
impl Copy for KeyState[src]
impl Copy for KeyStateimpl Clone for KeyState[src]
impl Clone for KeyStatefn clone(&self) -> KeyState[src]
fn clone(&self) -> KeyStateReturns 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 KeyStatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for KeyState[src]
impl Eq for KeyStateimpl PartialEq for KeyState[src]
impl PartialEq for KeyState