[][src]Enum input_linux::RelativeAxis

#[repr(u16)]pub enum RelativeAxis {
    X,
    Y,
    Z,
    RX,
    RY,
    RZ,
    HorizontalWheel,
    Dial,
    Wheel,
    Misc,
    Reserved,
    WheelHiRes,
    HorizontalWheelHiRes,
    UnknownD,
    UnknownE,
    UnknownF,
}

Relative axes.

Variants

X
Y
Z
RX
RY
RZ
HorizontalWheel
Dial
Wheel
Misc
Reserved
WheelHiRes
HorizontalWheelHiRes
UnknownD
UnknownE
UnknownF

Implementations

impl RelativeAxis[src]

pub const COUNT: usize[src]

The maximum valid value.

pub fn iter() -> EnumIterator<Self>

Notable traits for EnumIterator<T>

impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
[src]

An iterator over all values of the enum.

pub fn bitmask() -> Bitmask<Self>[src]

A bitmask that can contain all values of the enum.

impl RelativeAxis[src]

pub fn from_code(code: u16) -> Result<Self, RangeError>[src]

Instantiates the enum from a raw code value.

Trait Implementations

impl BitmaskTrait for RelativeAxis[src]

type Array = [u8; 2]

The underlying array storage data type.

type Index = RelativeAxis

The type that the bitmask can be indexed by.

impl Clone for RelativeAxis[src]

impl Copy for RelativeAxis[src]

impl Debug for RelativeAxis[src]

impl Eq for RelativeAxis[src]

impl From<RelativeAxis> for u16[src]

impl Hash for RelativeAxis[src]

impl IterableEnum for RelativeAxis[src]

impl Ord for RelativeAxis[src]

impl PartialEq<RelativeAxis> for RelativeAxis[src]

impl PartialOrd<RelativeAxis> for RelativeAxis[src]

impl StructuralEq for RelativeAxis[src]

impl StructuralPartialEq for RelativeAxis[src]

impl TryFrom<u16> for RelativeAxis[src]

type Error = RangeError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.