pub enum Size {
    Usize,
    U8,
    U16,
    U32,
    U64,
    U128,
}
Expand description

The encoding for sizes for collections.

Variants

Usize

Encodes sizes as usize.

U8

Encodes sizes as u8.

U16

Encodes sizes as u16.

U32

Encodes sizes as u32.

U64

Encodes sizes as u64.

U128

Encodes sizes as u128.

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.