pub struct KeyEvent {
pub code: Key,
pub modifiers: KeyModifiers,
}
Expand description
A keyboard event
Fields§
§code: Key
§modifiers: KeyModifiers
Implementations§
Trait Implementations§
source§impl From<KeyEvent> for KeyEvent
impl From<KeyEvent> for KeyEvent
source§fn from(e: XtermKeyEvent) -> Self
fn from(e: XtermKeyEvent) -> Self
Converts to this type from the input type.
source§impl PartialEq for KeyEvent
impl PartialEq for KeyEvent
source§impl PartialOrd for KeyEvent
impl PartialOrd for KeyEvent
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for KeyEvent
impl Eq for KeyEvent
impl StructuralPartialEq for KeyEvent
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§
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