#[non_exhaustive]#[repr(u32)]pub enum EventType2 {
Key = 0,
Mouse = 7,
Touch = 8,
Axis = 9,
GamepadButton = 10,
RawMidi = 11,
}
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.
Trait Implementations§
Source§impl CheckedBitPattern for EventType2
impl CheckedBitPattern for EventType2
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 EventType2
impl Clone for EventType2
Source§fn clone(&self) -> EventType2
fn clone(&self) -> EventType2
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 EventType2
impl Debug for EventType2
Source§impl Hash for EventType2
impl Hash for EventType2
Source§impl PartialEq for EventType2
impl PartialEq for EventType2
impl Copy for EventType2
impl Eq for EventType2
impl NoUninit for EventType2
impl StructuralPartialEq for EventType2
Auto Trait Implementations§
impl Freeze for EventType2
impl RefUnwindSafe for EventType2
impl Send for EventType2
impl Sync for EventType2
impl Unpin for EventType2
impl UnwindSafe for EventType2
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