pub struct AsInt<'a> {
    pub is_negative: bool,
    pub little_endian: &'a [u8],
}
Expand description

Canonical way to write an integer of any size.

Backward compatibility:

  • The value +0 never writes bytes to the stream.
  • Integers of any size (u8..u24..u128…uN) are written in a canonical form, and can be written in any order.

Fields

is_negative: boollittle_endian: &'a [u8]

Trait Implementations

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.

Should always be Self

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.