Enum Value
Source pub enum Value {
Show 20 variants
Timestamp(DateTime<Local>),
Byte(u8),
Enum(u8),
SInt8(i8),
UInt8(u8),
SInt16(i16),
UInt16(u16),
SInt32(i32),
UInt32(u32),
String(String),
Float32(f32),
Float64(f64),
UInt8z(u8),
UInt16z(u16),
UInt32z(u32),
SInt64(i64),
UInt64(u64),
UInt64z(u64),
Array(Vec<Self>),
Invalid,
}
Expand description
Contains arbitrary data in the defined format.
Timestamp field converted to the local timezone
Unsigned 8bit integer data
Unsigned 8bit integer that gets mapped to a FieldType enum
Unsigned 8bit integer data
Signed 16bit integer data
Unsigned 16bit integer data
Signed 32bit integer data
Unsigned 32bit integer data
32bit floating point data
64bit floating point data
Unsigned 8bit integer data where the invalid value is 0x0
instead of 0xFF
Unsigned 16bit integer data where the invalid value is 0x0
instead of 0xFFFF
Unsigned 16bit integer data where the invalid value is 0x0
instead of 0xFFFFFFFF
Signed 64bit integer data
Unsigned 64bit integer data
Unsigned 64bit integer data where the invalid value is 0x0
instead of 0xFFFFFFFFFFFFFFFF
Array of Values, while this allows nested arrays and mixed types this is not possible
in a properly formatted FIT file
Placeholder for invalid values in output
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
Converts to this type from the input type.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more
Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more
Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more
Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more
Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more
Serialize this value into the given Serde serializer.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dest
.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.