aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2017-07-08 21:40:45 -0400
committerAndrew Gallant <jamslam@gmail.com>2017-07-09 14:26:40 -0400
commitf1df84cbf02a14233958e6a8aa3973d052322f04 (patch)
treefd37a8b1b48981f504e2af1536767c0414bae209 /src
parentef6d19e8369a4016fe797b15ad076274f9a24664 (diff)
downloadbyteorder-f1df84cbf02a14233958e6a8aa3973d052322f04.tar.gz
add BE and LE type aliases
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4142b1c..876bd45 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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