Enum input::event::keyboard::KeyboardEvent
source · #[non_exhaustive]pub enum KeyboardEvent {
Key(KeyboardKeyEvent),
}
Expand description
A keyboard related Event
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Key(KeyboardKeyEvent)
An event related to pressing a key
Trait Implementations§
source§impl AsRaw<libinput_event_keyboard> for KeyboardEvent
impl AsRaw<libinput_event_keyboard> for KeyboardEvent
source§fn as_raw(&self) -> *const libinput_event_keyboard
fn as_raw(&self) -> *const libinput_event_keyboard
Receive a raw pointer representing this type.
source§impl Context for KeyboardEvent
impl Context for KeyboardEvent
source§impl Debug for KeyboardEvent
impl Debug for KeyboardEvent
source§impl EventTrait for KeyboardEvent
impl EventTrait for KeyboardEvent
source§impl Hash for KeyboardEvent
impl Hash for KeyboardEvent
source§impl PartialEq for KeyboardEvent
impl PartialEq for KeyboardEvent
source§fn eq(&self, other: &KeyboardEvent) -> bool
fn eq(&self, other: &KeyboardEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyboardEvent
impl StructuralEq for KeyboardEvent
impl StructuralPartialEq for KeyboardEvent
Auto Trait Implementations§
impl !RefUnwindSafe for KeyboardEvent
impl !Send for KeyboardEvent
impl !Sync for KeyboardEvent
impl Unpin for KeyboardEvent
impl !UnwindSafe for KeyboardEvent
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
source§impl<T> KeyboardEventTrait for T
impl<T> KeyboardEventTrait for T
source§fn into_keyboard_event(self) -> KeyboardEventwhere
Self: Sized,
fn into_keyboard_event(self) -> KeyboardEventwhere
Self: Sized,
Convert into a general
KeyboardEvent
again