[−][src]Struct fitparser::FitDataRecord
Defines a set of data derived from a FIT Data message.
Implementations
impl FitDataRecord
[src]
pub fn new(kind: MesgNum) -> Self
[src]
Create an empty data record with a given kind
pub fn kind(&self) -> MesgNum
[src]
Return the kind of FitDataRecord, this value is defined by the FIT profile.
pub fn fields(&self) -> &[FitDataField]
[src]
Get all fields as a slice
pub fn push(&mut self, field: FitDataField)
[src]
Add a field to the record
pub fn into_vec(self) -> Vec<FitDataField>
[src]
Consume the record and return the field vector for further processing
Trait Implementations
impl Clone for FitDataRecord
[src]
fn clone(&self) -> FitDataRecord
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FitDataRecord
[src]
impl Serialize for FitDataRecord
[src]
Auto Trait Implementations
impl RefUnwindSafe for FitDataRecord
impl Send for FitDataRecord
impl Sync for FitDataRecord
impl Unpin for FitDataRecord
impl UnwindSafe for FitDataRecord
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>,