pub enum PhysicalKey {
Code(KeyCode),
Unidentified(u32),
}Variants§
Code(KeyCode)
A known key code
Unidentified(u32)
This variant is used when the key cannot be translated to a KeyCode
Trait Implementations§
Source§impl Clone for PhysicalKey
impl Clone for PhysicalKey
Source§fn clone(&self) -> PhysicalKey
fn clone(&self) -> PhysicalKey
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 PhysicalKey
impl Debug for PhysicalKey
Source§impl<'de> Deserialize<'de> for PhysicalKey
impl<'de> Deserialize<'de> for PhysicalKey
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
Source§impl Into<IntersticeValue> for PhysicalKey
impl Into<IntersticeValue> for PhysicalKey
Source§fn into(self) -> IntersticeValue
fn into(self) -> IntersticeValue
Converts this type into the (usually inferred) input type.
Source§impl Serialize for PhysicalKey
impl Serialize for PhysicalKey
Source§impl TryFrom<IntersticeValue> for PhysicalKey
impl TryFrom<IntersticeValue> for PhysicalKey
Auto Trait Implementations§
impl Freeze for PhysicalKey
impl RefUnwindSafe for PhysicalKey
impl Send for PhysicalKey
impl Sync for PhysicalKey
impl Unpin for PhysicalKey
impl UnwindSafe for PhysicalKey
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