#[repr(u32)]
#[non_exhaustive]
pub enum Axis {
LeftStickX,
LeftStickY,
RightStickX,
RightStickY,
DpadX,
DpadY,
LeftShoulder,
RightShoulder,
}
Expand description
Axis input event axis enumeration.
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.
LeftStickX
LeftStickY
RightStickX
RightStickY
DpadX
DpadY
LeftShoulder
RightShoulder
Trait Implementations
sourceimpl CheckedBitPattern for Axis
impl CheckedBitPattern for Axis
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
. Read more
sourcefn is_valid_bit_pattern(bits: &<Axis as CheckedBitPattern>::Bits) -> bool
fn is_valid_bit_pattern(bits: &<Axis as CheckedBitPattern>::Bits) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more
sourceimpl PartialEq<Axis> for Axis
impl PartialEq<Axis> for Axis
impl Copy for Axis
impl Eq for Axis
impl NoUninit for Axis
impl StructuralEq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin for Axis
impl UnwindSafe for Axis
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more