#[repr(C)]pub struct KeyboardKey {
pub key: Key,
pub released: bool,
pub repeat: bool,
}Fields§
§key: KeyPhysical key code
released: boolTrue if it was released, false if pressed
repeat: boolIf the button has been held down for some OS specified period
Trait Implementations§
Source§impl Clone for KeyboardKey
impl Clone for KeyboardKey
Source§fn clone(&self) -> KeyboardKey
fn clone(&self) -> KeyboardKey
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 KeyboardKey
impl Debug for KeyboardKey
impl Copy for KeyboardKey
Auto Trait Implementations§
impl Freeze for KeyboardKey
impl RefUnwindSafe for KeyboardKey
impl Send for KeyboardKey
impl Sync for KeyboardKey
impl Unpin for KeyboardKey
impl UnwindSafe for KeyboardKey
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