Struct fitparser::ValueWithUnits
source · pub struct ValueWithUnits { /* private fields */ }
Expand description
Describes a field value along with its defined units (if any), this struct is useful for
serializing data in a key-value store where the key is either the name or definition number
since it can be created from a FitDataField
with minimal data cloning.
Implementations§
Trait Implementations§
source§impl Clone for ValueWithUnits
impl Clone for ValueWithUnits
source§fn clone(&self) -> ValueWithUnits
fn clone(&self) -> ValueWithUnits
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 ValueWithUnits
impl Debug for ValueWithUnits
source§impl Display for ValueWithUnits
impl Display for ValueWithUnits
source§impl From<FitDataField> for ValueWithUnits
impl From<FitDataField> for ValueWithUnits
source§fn from(field: FitDataField) -> Self
fn from(field: FitDataField) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValueWithUnits
impl RefUnwindSafe for ValueWithUnits
impl Send for ValueWithUnits
impl Sync for ValueWithUnits
impl Unpin for ValueWithUnits
impl UnwindSafe for ValueWithUnits
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