pub struct UsKey {
pub code: &'static str,
pub key_code: u32,
pub shift: bool,
}Expand description
Physical key of a character on a US keyboard: KeyboardEvent.code, the
Windows virtual key code (keyCode), and whether Shift is held.
Fields§
§code: &'static str§key_code: u32§shift: boolTrait Implementations§
impl Copy for UsKey
impl Eq for UsKey
impl StructuralPartialEq for UsKey
Auto Trait Implementations§
impl Freeze for UsKey
impl RefUnwindSafe for UsKey
impl Send for UsKey
impl Sync for UsKey
impl Unpin for UsKey
impl UnsafeUnpin for UsKey
impl UnwindSafe for UsKey
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