[][src]Enum fit_sdk::Value

pub enum Value {
    Enum(u8),
    String(String),
    U8(u8),
    U16(u16),
    U32(u32),
    U64(u64),
    I8(i8),
    I16(i16),
    I32(i32),
    I64(i64),
    F32(f32),
    F64(f64),
    Time(u32),
    Array(Vec<Value>),
}

The container type for the different values.

Variants

Enum(u8)String(String)U8(u8)U16(u16)U32(u32)U64(u64)I8(i8)I16(i16)I32(i32)I64(i64)F32(f32)F64(f64)Time(u32)Array(Vec<Value>)

Methods

impl Value[src]

pub fn scale(self, s: Option<f64>) -> Self[src]

pub fn offset(self, o: Option<f64>) -> Self[src]

pub fn u8(&self) -> u8[src]

Trait Implementations

impl PartialEq<Value> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl From<u8> for Value[src]

impl From<u16> for Value[src]

impl From<u32> for Value[src]

impl From<u64> for Value[src]

impl From<i8> for Value[src]

impl From<i16> for Value[src]

impl From<i32> for Value[src]

impl From<i64> for Value[src]

impl From<f32> for Value[src]

impl From<f64> for Value[src]

impl<'_> From<&'_ str> for Value[src]

impl From<String> for Value[src]

impl<'_> From<&'_ [Value]> for Value[src]

impl From<Vec<Value>> for Value[src]

impl Clone for Value[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Value[src]

impl Debug for Value[src]

Auto Trait Implementations

impl Send for Value

impl Sync for Value

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.