pub struct Correction { /* private fields */ }Expand description
Axis correction
Correction is used for axis calibration.
Implementations§
Source§impl Correction
impl Correction
Sourcepub const fn coefficient(&self) -> &[i32; 8]
pub const fn coefficient(&self) -> &[i32; 8]
Returns coefficient values
Sourcepub fn coefficient_mut(&mut self) -> &mut [i32; 8]
pub fn coefficient_mut(&mut self) -> &mut [i32; 8]
Returns coefficient values for editing
Sourcepub const fn new(
coefficient: &[i32; 8],
precision: i16,
type_: CorrectionType,
) -> Self
pub const fn new( coefficient: &[i32; 8], precision: i16, type_: CorrectionType, ) -> Self
Creates new correction from coefficient values, precision and type
Sourcepub fn set_precision(&mut self, precision: i16)
pub fn set_precision(&mut self, precision: i16)
Set precision
Sourcepub fn set_type(&mut self, type_: CorrectionType)
pub fn set_type(&mut self, type_: CorrectionType)
Set type
Sourcepub fn type_(&self) -> CorrectionType
pub fn type_(&self) -> CorrectionType
Returns type
Trait Implementations§
Source§impl Clone for Correction
impl Clone for Correction
Source§fn clone(&self) -> Correction
fn clone(&self) -> Correction
Returns a duplicate 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 Correction
impl Debug for Correction
Source§impl Default for Correction
impl Default for Correction
Source§impl Hash for Correction
impl Hash for Correction
Source§impl PartialEq for Correction
impl PartialEq for Correction
impl Copy for Correction
impl Eq for Correction
impl StructuralPartialEq for Correction
Auto Trait Implementations§
impl Freeze for Correction
impl RefUnwindSafe for Correction
impl Send for Correction
impl Sync for Correction
impl Unpin for Correction
impl UnwindSafe for Correction
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