Enum pc_keyboard::DecodedKey
source · pub enum DecodedKey {
RawKey(KeyCode),
Unicode(char),
}
Expand description
Contains either a Unicode character, or a raw key code.
Variants§
Trait Implementations§
source§impl Clone for DecodedKey
impl Clone for DecodedKey
source§fn clone(&self) -> DecodedKey
fn clone(&self) -> DecodedKey
Returns a copy 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 DecodedKey
impl Debug for DecodedKey
source§impl PartialEq<DecodedKey> for DecodedKey
impl PartialEq<DecodedKey> for DecodedKey
source§fn eq(&self, other: &DecodedKey) -> bool
fn eq(&self, other: &DecodedKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.