[][src]Struct joydev::Correction

pub struct Correction { /* fields omitted */ }

Axis correction

Correction is used for axis calibration.

Methods

impl Correction[src]

pub const fn coefficient(&self) -> &[i32; 8][src]

Returns coefficient values

pub fn coefficient_mut(&mut self) -> &mut [i32; 8][src]

Returns coefficient values for editing

pub const fn new(
    coefficient: &[i32; 8],
    precision: i16,
    type_: CorrectionType
) -> Self
[src]

Creates new correction from coefficient values, precision and type

pub const fn precision(&self) -> i16[src]

Returns precision

pub fn set_precision(&mut self, precision: i16)[src]

Set precision

pub fn set_type(&mut self, type_: CorrectionType)[src]

Set type

pub fn type_(&self) -> CorrectionType[src]

Returns type

Trait Implementations

impl Clone for Correction[src]

impl Copy for Correction[src]

impl Debug for Correction[src]

impl Default for Correction[src]

impl Eq for Correction[src]

impl Hash for Correction[src]

impl PartialEq<Correction> for Correction[src]

impl StructuralEq for Correction[src]

impl StructuralPartialEq for Correction[src]

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.