pub trait ByteOrder: Copy + Clone + Debug + Display + Eq + PartialEq + Ord + PartialOrd { }
Expand description
A type-level representation of byte order.
This type is implemented by BigEndian
and LittleEndian
, which
represent big-endian and little-endian byte order respectively. This module
also provides a number of useful aliases for those types: NativeEndian
,
NetworkEndian
, BE
, and LE
.
ByteOrder
types can be used to specify the byte order of the types in this
module - for example, U32<BigEndian>
is a 32-bit integer stored in
big-endian byte order.
Object Safety§
This trait is not object safe.