pub struct Calibration {
pub voltage_multiplier: u16,
pub voltage_divisor: u16,
pub current_multiplier: u16,
pub current_divisor: u16,
}
Fields
voltage_multiplier: u16
voltage_divisor: u16
current_multiplier: u16
current_divisor: u16
Trait Implementations
sourceimpl Clone for Calibration
impl Clone for Calibration
sourcefn clone(&self) -> Calibration
fn clone(&self) -> Calibration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Calibration
impl Debug for Calibration
sourceimpl Default for Calibration
impl Default for Calibration
sourcefn default() -> Calibration
fn default() -> Calibration
Returns the “default value” for a type. Read more
sourceimpl FromByteSlice for Calibration
impl FromByteSlice for Calibration
sourcefn 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.
sourcefn from_le_bytes(bytes: &[u8]) -> Calibration
fn from_le_bytes(bytes: &[u8]) -> Calibration
Deserialize the implementing type from a byte slice.
sourceimpl Hash for Calibration
impl Hash for Calibration
sourceimpl PartialEq<Calibration> for Calibration
impl PartialEq<Calibration> for Calibration
sourcefn eq(&self, other: &Calibration) -> bool
fn eq(&self, other: &Calibration) -> bool
impl Copy for Calibration
impl Eq for Calibration
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more