Enum input_linux::RelativeAxis
source · #[repr(u16)]
pub enum RelativeAxis {
Show 16 variants
X,
Y,
Z,
RX,
RY,
RZ,
HorizontalWheel,
Dial,
Wheel,
Misc,
Reserved,
WheelHiRes,
HorizontalWheelHiRes,
UnknownD,
UnknownE,
UnknownF,
}Expand description
Relative axes.
Variants§
X
Y
Z
RX
RY
RZ
HorizontalWheel
Dial
Wheel
Misc
Reserved
WheelHiRes
HorizontalWheelHiRes
UnknownD
UnknownE
UnknownF
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
§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<RelativeAxis> for RelativeAxis
impl PartialEq<RelativeAxis> 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<RelativeAxis> for RelativeAxis
impl PartialOrd<RelativeAxis> 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 more