pub enum SpecialKey {
Show 14 variants
Esc,
Repeat,
Space,
Tab,
Enter,
Shift,
Caps,
Ctrl,
Alt,
Meta,
Menu,
Fn,
Backspace,
Del,
}
Expand description
Covers a wide range of keys that don’t necessarily output characters, but are still commonly found on a
keyboard. Shift is meant to function the same as a Key::Layer { layer: "shift" }
key.
Variants§
Trait Implementations§
Source§impl Clone for SpecialKey
impl Clone for SpecialKey
Source§fn clone(&self) -> SpecialKey
fn clone(&self) -> SpecialKey
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 SpecialKey
impl Debug for SpecialKey
Source§impl Hash for SpecialKey
impl Hash for SpecialKey
Source§impl Ord for SpecialKey
impl Ord for SpecialKey
Source§fn cmp(&self, other: &SpecialKey) -> Ordering
fn cmp(&self, other: &SpecialKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SpecialKey
impl PartialEq for SpecialKey
Source§impl PartialOrd for SpecialKey
impl PartialOrd for SpecialKey
impl Eq for SpecialKey
impl StructuralPartialEq for SpecialKey
Auto Trait Implementations§
impl Freeze for SpecialKey
impl RefUnwindSafe for SpecialKey
impl Send for SpecialKey
impl Sync for SpecialKey
impl Unpin for SpecialKey
impl UnwindSafe for SpecialKey
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