Enum mkit::cbor::SimpleValue[][src]

pub enum SimpleValue {
    Unassigned,
    True,
    False,
    Null,
    Undefined,
    Reserved24(u8),
    F16(u16),
    F32(f32),
    F64(f64),
    Break,
}

Major type 7, simple-value. Refer to Cbor spec for details.

Variants

Unassigned

0..=19 and 28..=30 and 32..=255 are unassigned.

True

Boolean type, value true.

False

Boolean type, value false.

Null

Null unitary type, can be used in place of optional types.

Undefined

Undefined unitary type.

Reserved24(u8)

Reserved.

F16(u16)

16-bit floating point.

F32(f32)

32-bit floating point.

F64(f64)

64-bit floating point.

Break

Break stop for indefinite encoding.

Implementations

impl SimpleValue[src]

pub fn to_type_order(&self) -> usize[src]

Trait Implementations

impl Arbitrary for SimpleValue[src]

impl Clone for SimpleValue[src]

impl Copy for SimpleValue[src]

impl Debug for SimpleValue[src]

impl Eq for SimpleValue[src]

impl IntoCbor for SimpleValue[src]

impl PartialEq<SimpleValue> for SimpleValue[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.