[−][src]Struct joydev::Correction
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]
coefficient: &[i32; 8],
precision: i16,
type_: CorrectionType
) -> Self
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]
fn clone(&self) -> Correction[src]
fn clone_from(&mut self, source: &Self)1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Correction> for Correction[src]
fn eq(&self, other: &Correction) -> bool[src]
fn ne(&self, other: &Correction) -> bool[src]
impl StructuralEq for Correction[src]
impl StructuralPartialEq for Correction[src]
Auto Trait Implementations
impl RefUnwindSafe for Correction
impl Send for Correction
impl Sync for Correction
impl Unpin for Correction
impl UnwindSafe for Correction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,