Struct event_types::KeyboardInputEvent
source · pub struct KeyboardInputEvent {
pub key_event: KeyEvent,
}
Expand description
A keyboard event, indicating that one or more keys were pressed or released.
Fields§
§key_event: KeyEvent
The key input event from i/o device
Implementations§
source§impl KeyboardInputEvent
impl KeyboardInputEvent
sourcepub fn new(key_event: KeyEvent) -> KeyboardInputEvent
pub fn new(key_event: KeyEvent) -> KeyboardInputEvent
Create a new key board input event. key
is the key input from the keyboard
Trait Implementations§
source§impl Clone for KeyboardInputEvent
impl Clone for KeyboardInputEvent
source§fn clone(&self) -> KeyboardInputEvent
fn clone(&self) -> KeyboardInputEvent
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 moreAuto Trait Implementations§
impl RefUnwindSafe for KeyboardInputEvent
impl Send for KeyboardInputEvent
impl Sync for KeyboardInputEvent
impl Unpin for KeyboardInputEvent
impl UnwindSafe for KeyboardInputEvent
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