#[repr(u16)]pub enum RelativeAxis {
Show 16 variants
X = 0,
Y = 1,
Z = 2,
RX = 3,
RY = 4,
RZ = 5,
HorizontalWheel = 6,
Dial = 7,
Wheel = 8,
Misc = 9,
Reserved = 10,
WheelHiRes = 11,
HorizontalWheelHiRes = 12,
UnknownD = 13,
UnknownE = 14,
UnknownF = 15,
}Expand description
Relative axes.
Variants§
X = 0
Y = 1
Z = 2
RX = 3
RY = 4
RZ = 5
HorizontalWheel = 6
Dial = 7
Wheel = 8
Misc = 9
Reserved = 10
WheelHiRes = 11
HorizontalWheelHiRes = 12
UnknownD = 13
UnknownE = 14
UnknownF = 15
Implementations§
Source§impl RelativeAxis
impl RelativeAxis
Source§impl RelativeAxis
impl RelativeAxis
Sourcepub fn from_code(code: u16) -> Result<Self, RangeError>
pub fn from_code(code: u16) -> Result<Self, RangeError>
Instantiates the enum from a raw code value.
Trait Implementations§
Source§impl BitmaskTrait for RelativeAxis
impl BitmaskTrait for RelativeAxis
Source§type Index = RelativeAxis
type Index = RelativeAxis
The type that the bitmask can be indexed by.
Source§fn array_default() -> Self::Array
fn array_default() -> Self::Array
The default empty state of the bitmask.
Source§fn array_slice(array: &Self::Array) -> &[u8] ⓘ
fn array_slice(array: &Self::Array) -> &[u8] ⓘ
A representation of the bitmask as a slice of bytes.
Source§impl Clone for RelativeAxis
impl Clone for RelativeAxis
Source§fn clone(&self) -> RelativeAxis
fn clone(&self) -> RelativeAxis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RelativeAxis
Source§impl Debug for RelativeAxis
impl Debug for RelativeAxis
Source§impl<'de> Deserialize<'de> for RelativeAxis
impl<'de> Deserialize<'de> for RelativeAxis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RelativeAxis
Source§impl From<RelativeAxis> for u16
impl From<RelativeAxis> for u16
Source§fn from(v: RelativeAxis) -> Self
fn from(v: RelativeAxis) -> Self
Converts to this type from the input type.
Source§impl Hash for RelativeAxis
impl Hash for RelativeAxis
Source§impl IterableEnum for RelativeAxis
impl IterableEnum for RelativeAxis
Source§impl Ord for RelativeAxis
impl Ord for RelativeAxis
Source§fn cmp(&self, other: &RelativeAxis) -> Ordering
fn cmp(&self, other: &RelativeAxis) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RelativeAxis
impl PartialEq for RelativeAxis
Source§fn eq(&self, other: &RelativeAxis) -> bool
fn eq(&self, other: &RelativeAxis) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RelativeAxis
impl PartialOrd for RelativeAxis
Source§impl Serialize for RelativeAxis
impl Serialize for RelativeAxis
impl StructuralPartialEq for RelativeAxis
Auto Trait Implementations§
impl Freeze for RelativeAxis
impl RefUnwindSafe for RelativeAxis
impl Send for RelativeAxis
impl Sync for RelativeAxis
impl Unpin for RelativeAxis
impl UnsafeUnpin for RelativeAxis
impl UnwindSafe for RelativeAxis
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