Crate endian_trait [−] [src]
Endian conversion trait
This trait declares methods that perform endian conversions on data types. For
the primitives, which are essentially atomic in structure, this conversion is
simple: flip all their bytes around. This conversion is also defined as inherent
methods on the integral primitives, so
Endian::from_be(n: i32) is equivalent
Convert a type from one endian order to another.