#[non_exhaustive]pub enum SpecialKey {
GraveEscape,
Repeat,
}Expand description
Key codes which are not in the HID spec, but still commonly used
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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 (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 SpecialKey
Source§impl Debug for SpecialKey
impl Debug for SpecialKey
Source§impl<'de> Deserialize<'de> for SpecialKey
impl<'de> Deserialize<'de> for SpecialKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SpecialKey
Source§impl MaxSize for SpecialKey
impl MaxSize for SpecialKey
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
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 (const: unstable) · 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
Source§impl Serialize for SpecialKey
impl Serialize 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 UnsafeUnpin 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