[−][src]Trait packed_struct::types::IntegerAsBytes
Convert a native platform integer type into a byte array.
Associated Types
type AsBytes
The byte array type, for instance [u8; 2].
Required methods
fn to_msb_bytes(&self) -> Self::AsBytes
Convert into a MSB byte array.
fn to_lsb_bytes(&self) -> Self::AsBytes
Convert into a LSB byte array.
fn from_msb_bytes(bytes: &Self::AsBytes) -> Self
Convert from a MSB byte array.
fn from_lsb_bytes(bytes: &Self::AsBytes) -> Self
Convert from a LSB byte array.