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<'de> Deserialize<'de> for KeyEventKind
impl<'de> Deserialize<'de> for KeyEventKind
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 moresource§impl Serialize for KeyEventKind
impl Serialize for KeyEventKind
impl Copy for KeyEventKind
impl Eq for KeyEventKind
impl StructuralEq for KeyEventKind
impl StructuralPartialEq for KeyEventKind
Auto Trait Implementations§
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