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 · 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 Default for KeyEventKind
impl Default for KeyEventKind
Source§fn default() -> KeyEventKind
fn default() -> KeyEventKind
Returns the “default value” for a type. Read more
Source§impl Hash for KeyEventKind
impl Hash for KeyEventKind
Source§impl PartialEq for KeyEventKind
impl PartialEq for KeyEventKind
impl 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