diff options
author | Andrew Gallant <jamslam@gmail.com> | 2017-07-08 21:40:45 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-07-09 14:26:40 -0400 |
commit | f1df84cbf02a14233958e6a8aa3973d052322f04 (patch) | |
tree | fd37a8b1b48981f504e2af1536767c0414bae209 /src | |
parent | ef6d19e8369a4016fe797b15ad076274f9a24664 (diff) | |
download | byteorder-f1df84cbf02a14233958e6a8aa3973d052322f04.tar.gz |
add BE and LE type aliases
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1388,6 +1388,9 @@ impl Default for BigEndian { } } +/// A type alias for `BigEndian`. +pub type BE = BigEndian; + /// Defines little-endian serialization. /// /// Note that this type has no value constructor. It is used purely at the @@ -1413,6 +1416,9 @@ impl Default for LittleEndian { } } +/// A type alias for `LittleEndian`. +pub type LE = LittleEndian; + /// Defines network byte order serialization. /// /// Network byte order is defined by [RFC 1700][1] to be big-endian, and is |