#[repr(C)]pub struct AxisInput {
pub axis: Axis,
pub value: f32,
}
Fields§
§axis: Axis
The axis that was moved.
value: f32
The new value of the axis.
Trait Implementations§
Source§impl CheckedBitPattern for AxisInput
impl CheckedBitPattern for AxisInput
Source§type Bits = AxisInputBits
type Bits = AxisInputBits
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: &AxisInputBits) -> bool
fn is_valid_bit_pattern(bits: &AxisInputBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.impl Copy for AxisInput
impl NoUninit for AxisInput
impl StructuralPartialEq for AxisInput
Auto Trait Implementations§
impl Freeze for AxisInput
impl RefUnwindSafe for AxisInput
impl Send for AxisInput
impl Sync for AxisInput
impl Unpin for AxisInput
impl UnwindSafe for AxisInput
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