#[non_exhaustive]
pub enum EventType {
Key,
Mouse,
Window,
Touch,
Players,
}Expand description
EventType maps to a specific type
Key => KeyInput
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 EventType
impl CheckedBitPattern for EventType
§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: &<EventType as CheckedBitPattern>::Bits) -> bool
fn is_valid_bit_pattern(bits: &<EventType as CheckedBitPattern>::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.