These traits allow you to represent the ability of a type to be serialized/
deserialized into an arbitrary byte stream. Because there's no universal way to
represent integers (outside of
i8), endian types are provided to
explicitly denote the endianness when deserializing.
This is not the same as serde! Serde is used to
serialize/deserialize types regardless of the data format. The
WriteTo traits are intended to be used at a lower-level, where details such
as the ordering of bytes is important.
A type that can be used to deserialize integers in big-endian format.
A type that can be used to read/write integers in a little-endian format.
A type that can be used to deserialize integers in native-endian format.
Used to deserialize types from an input stream (i.e. a
Used to serialize types into an output stream (i.e. a
Network endianness is big endianness.