Enum crazyflie_lib::ValueType[][src]

pub enum ValueType {
    U8,
    U16,
    U32,
    U64,
    I8,
    I16,
    I32,
    I64,
    F16,
    F32,
    F64,
}
Expand description

Value type

This enum contains all the possible type of a Value

Variants

U8

Type of a u8 value

U16

Type of a u16 value

U32

Type of a u32 value

U64

Type of a u64 value

I8

Type of a i8 value

I16

Type of a i16 value

I32

Type of a i32 value

I64

Type of a i64 value

F16

Type of a f16 value

F32

Type of a f32 value

F64

Type of a f64 value

Implementations

Return the byte length of a value according to its type

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.