pub struct KeyEventArgs {
pub event_type: KeyEventType,
pub key: String,
pub modifiers: u32,
pub handled: bool,
}Fields§
§event_type: KeyEventType§key: String§modifiers: u32§handled: boolImplementations§
Source§impl KeyEventArgs
impl KeyEventArgs
pub fn new(event_type: KeyEventType, key: String, modifiers: u32) -> Self
Trait Implementations§
Source§impl Clone for KeyEventArgs
impl Clone for KeyEventArgs
Source§fn clone(&self) -> KeyEventArgs
fn clone(&self) -> KeyEventArgs
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 moreAuto Trait Implementations§
impl Freeze for KeyEventArgs
impl RefUnwindSafe for KeyEventArgs
impl Send for KeyEventArgs
impl Sync for KeyEventArgs
impl Unpin for KeyEventArgs
impl UnsafeUnpin for KeyEventArgs
impl UnwindSafe for KeyEventArgs
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