pub enum KeyEventKind {
Press,
Repeat,
Release,
}Expand description
The type of key event.
Variants§
Press
Key was pressed (default when not distinguishable).
Repeat
Key is being held (repeat event).
Release
Key was released.
Trait Implementations§
Source§impl Clone for KeyEventKind
impl Clone for KeyEventKind
Source§fn clone(&self) -> KeyEventKind
fn clone(&self) -> KeyEventKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyEventKind
Source§impl Debug for KeyEventKind
impl Debug for KeyEventKind
Source§impl Default for KeyEventKind
impl Default for KeyEventKind
Source§fn default() -> KeyEventKind
fn default() -> KeyEventKind
Returns the “default value” for a type. Read more
impl Eq 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
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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