#[repr(u32)]pub enum KeyEventType {
KeyPress = 0,
KeyRelease = 1,
Text = 2,
}
Expand description
Key event type.
Variants§
Trait Implementations§
Source§impl CheckedBitPattern for KeyEventType
impl CheckedBitPattern for KeyEventType
Source§type Bits = u32
type Bits = u32
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: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for KeyEventType
impl Clone for KeyEventType
Source§fn clone(&self) -> KeyEventType
fn clone(&self) -> KeyEventType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KeyEventType
impl Debug for KeyEventType
Source§impl From<KeyEventType> for u32
impl From<KeyEventType> for u32
Source§fn from(enum_value: KeyEventType) -> Self
fn from(enum_value: KeyEventType) -> Self
Converts to this type from the input type.
Source§impl Hash for KeyEventType
impl Hash for KeyEventType
Source§impl PartialEq for KeyEventType
impl PartialEq for KeyEventType
Source§impl TryFrom<u32> for KeyEventType
impl TryFrom<u32> for KeyEventType
Source§type Error = TryFromPrimitiveError<KeyEventType>
type Error = TryFromPrimitiveError<KeyEventType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for KeyEventType
impl TryFromPrimitive for KeyEventType
impl Copy for KeyEventType
impl Eq for KeyEventType
impl NoUninit for KeyEventType
impl StructuralPartialEq for KeyEventType
Auto Trait Implementations§
impl Freeze for KeyEventType
impl RefUnwindSafe for KeyEventType
impl Send for KeyEventType
impl Sync for KeyEventType
impl Unpin for KeyEventType
impl UnwindSafe for KeyEventType
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