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 for KeyEventKind
impl PartialEq 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 for KeyEventKind
impl PartialOrd 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 moreimpl Copy for KeyEventKind
impl Eq for KeyEventKind
impl StructuralPartialEq for KeyEventKind
Auto Trait Implementations§
impl Freeze for KeyEventKind
impl RefUnwindSafe for KeyEventKind
impl Send for KeyEventKind
impl Sync for KeyEventKind
impl Unpin for KeyEventKind
impl UnwindSafe for KeyEventKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more