pub struct PhysicalKey(pub String);Expand description
A physical key location, independent of the active keyboard layout.
Identified by a USB-HID-style code name (e.g. "KeyA", "Digit1"). This
distinguishes the position pressed from the character produced (which
lives in the logical Key); a French AZERTY Q key and a US QWERTY A
key share the same physical code "KeyA".
Tuple Fields§
§0: StringImplementations§
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 (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 PhysicalKey
impl Debug for PhysicalKey
Source§impl Hash for PhysicalKey
impl Hash for PhysicalKey
Source§impl PartialEq for PhysicalKey
impl PartialEq for PhysicalKey
Source§fn eq(&self, other: &PhysicalKey) -> bool
fn eq(&self, other: &PhysicalKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PhysicalKey
impl StructuralPartialEq 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 UnsafeUnpin 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