pub enum KeyStepKind {
Down,
Up,
Press,
}Expand description
What kind of key event this step is.
Variants§
Down
Key press (keydown).
Up
Key release (keyup).
Press
A composite press — engines that don’t have separate keydown/
keyup paths can use this. We emit explicit Down + Up for
trusted paths and never use Press directly, but it’s part
of the public type for engines that need it.
Trait Implementations§
Source§impl Clone for KeyStepKind
impl Clone for KeyStepKind
Source§fn clone(&self) -> KeyStepKind
fn clone(&self) -> KeyStepKind
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 moreSource§impl Debug for KeyStepKind
impl Debug for KeyStepKind
Source§impl PartialEq for KeyStepKind
impl PartialEq for KeyStepKind
Source§fn eq(&self, other: &KeyStepKind) -> bool
fn eq(&self, other: &KeyStepKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for KeyStepKind
impl Eq for KeyStepKind
impl StructuralPartialEq for KeyStepKind
Auto Trait Implementations§
impl Freeze for KeyStepKind
impl RefUnwindSafe for KeyStepKind
impl Send for KeyStepKind
impl Sync for KeyStepKind
impl Unpin for KeyStepKind
impl UnsafeUnpin for KeyStepKind
impl UnwindSafe for KeyStepKind
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