Enum input_linux::RelativeAxis
source · #[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
sourcepub fn iter() -> EnumIterator<Self> ⓘ
pub fn iter() -> EnumIterator<Self> ⓘ
An iterator over all values of the enum.
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
§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 copy 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 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
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 · 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
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for RelativeAxis
impl PartialOrd for RelativeAxis
source§fn partial_cmp(&self, other: &RelativeAxis) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativeAxis) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelativeAxis
impl Serialize for RelativeAxis
source§impl TryFrom<u16> for RelativeAxis
impl TryFrom<u16> for RelativeAxis
impl Copy for RelativeAxis
impl Eq 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 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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)