pub enum Keystroke {
Named(NamedKey),
Code(KeyCode),
Character(char),
}Expand description
The key of a chord.
Variants§
Named(NamedKey)
A named key, such as Enter.
Code(KeyCode)
A physical key, mapped to a character through the keyboard layout.
Character(char)
The key that types this character in the keyboard layout. Letters written bare in a
chord, such as K, are stored lower case; "K" in quotes is the capital itself.
Trait Implementations§
impl Copy for Keystroke
impl Eq for Keystroke
impl StructuralPartialEq for Keystroke
Auto Trait Implementations§
impl Forget for Keystroke
impl Freeze for Keystroke
impl Move for Keystroke
impl RefUnwindSafe for Keystroke
impl Send for Keystroke
impl Sync for Keystroke
impl Unpin for Keystroke
impl UnsafeUnpin for Keystroke
impl UnwindSafe for Keystroke
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