Enum cbor_data::Literal[][src]

pub enum Literal {
    L0(u8),
    L1(u8),
    L2(u16),
    L4(u32),
    L8(u64),
}
Expand description

Low-level representation of major type 7 values.

Bool, null, and undefined are represented by L0 while L2–L4 represent the underlying bytes of floating-point numbers (16-, 32-, and 64-bit IEE754).

Variants

L0(u8)

Tuple Fields

0: u8

L1(u8)

Tuple Fields

0: u8

L2(u16)

Tuple Fields

0: u16

L4(u32)

Tuple Fields

0: u32

L8(u64)

Tuple Fields

0: u64

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 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.