pub struct Calibration {
pub offset: [i32; 2],
pub gain: [i32; 2],
}
Fields§
§offset: [i32; 2]
§gain: [i32; 2]
Trait Implementations§
source§impl Clone for Calibration
impl Clone for Calibration
source§fn clone(&self) -> Calibration
fn clone(&self) -> Calibration
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 Calibration
impl Debug for Calibration
source§impl Default for Calibration
impl Default for Calibration
source§fn default() -> Calibration
fn default() -> Calibration
Returns the “default value” for a type. Read more
source§impl FromByteSlice for Calibration
impl FromByteSlice for Calibration
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> Calibration
fn from_le_byte_slice(bytes: &[u8]) -> Calibration
Deserialize the implementing type from a byte slice.
source§impl Hash for Calibration
impl Hash for Calibration
source§impl PartialEq for Calibration
impl PartialEq for Calibration
source§fn eq(&self, other: &Calibration) -> bool
fn eq(&self, other: &Calibration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Calibration
impl Eq for Calibration
impl StructuralPartialEq for Calibration
Auto Trait Implementations§
impl RefUnwindSafe for Calibration
impl Send for Calibration
impl Sync for Calibration
impl Unpin for Calibration
impl UnwindSafe for Calibration
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