pub struct KeyEvent {
pub code: KeyCode,
pub modifiers: KeyModifiers,
}Expand description
A keyboard event with key code and modifiers.
Fields§
§code: KeyCode§modifiers: KeyModifiersImplementations§
Trait Implementations§
impl Eq for KeyEvent
Source§impl From<&KeyEvent> for KeyBinding
impl From<&KeyEvent> for KeyBinding
impl StructuralPartialEq for KeyEvent
Auto Trait Implementations§
impl Freeze for KeyEvent
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnsafeUnpin for KeyEvent
impl UnwindSafe for KeyEvent
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