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)

L1(u8)

L2(u16)

L4(u32)

L8(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

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