pub struct KeyEvent {
pub key: KeyVariant,
pub mods: u32,
}
Fields
key: KeyVariant
mods: u32
The modifiers, a combinations of M_ALT
, M_CTRL
, M_SHIFT
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more