#[repr(C)]pub struct KeyInput {
pub event_type: KeyEventType,
pub code: VirtualKeyCode,
pub text: char,
}
Fields§
§event_type: KeyEventType
§code: VirtualKeyCode
§text: char
Trait Implementations§
Source§impl CheckedBitPattern for KeyInput
impl CheckedBitPattern for KeyInput
Source§type Bits = KeyInputBits
type Bits = KeyInputBits
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &KeyInputBits) -> bool
fn is_valid_bit_pattern(bits: &KeyInputBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.impl Copy for KeyInput
impl Eq for KeyInput
impl NoUninit for KeyInput
impl StructuralPartialEq for KeyInput
Auto Trait Implementations§
impl Freeze for KeyInput
impl RefUnwindSafe for KeyInput
impl Send for KeyInput
impl Sync for KeyInput
impl Unpin for KeyInput
impl UnwindSafe for KeyInput
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