Enum crossterm::event::KeyEventKind
source · pub enum KeyEventKind {
Press,
Repeat,
Release,
}
Expand description
Represents a keyboard event kind.
Variants§
Trait Implementations§
source§impl Clone for KeyEventKind
impl Clone for KeyEventKind
source§fn clone(&self) -> KeyEventKind
fn clone(&self) -> KeyEventKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyEventKind
impl Debug for KeyEventKind
source§impl Hash for KeyEventKind
impl Hash for KeyEventKind
source§impl PartialEq<KeyEventKind> for KeyEventKind
impl PartialEq<KeyEventKind> for KeyEventKind
source§fn eq(&self, other: &KeyEventKind) -> bool
fn eq(&self, other: &KeyEventKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<KeyEventKind> for KeyEventKind
impl PartialOrd<KeyEventKind> for KeyEventKind
source§fn partial_cmp(&self, other: &KeyEventKind) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyEventKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more