From fd3fb623b3fbff689892a1641c99b4168076146b Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Fri, 17 May 2019 16:40:54 -0400 Subject: doc: list alternatives, as Rust 1.32 Closes #148 --- src/lib.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 2ce9603..db4d24d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ /*! -This crate provides convenience methods for encoding and decoding numbers -in either [big-endian or little-endian order]. +This crate provides convenience methods for encoding and decoding numbers in +either [big-endian or little-endian order]. The organization of the crate is pretty simple. A trait, [`ByteOrder`], specifies byte conversion methods for each type of number in Rust (sans numbers that have @@ -49,6 +49,12 @@ when built with the `i128` feature enabled. This crate can also be used without the standard library. +# Alternatives + +Note that as of Rust 1.32, the standard numeric types provide built-in methods +like `to_le_bytes` and `from_le_bytes`, which support some of the same use +cases. + [big-endian or little-endian order]: https://en.wikipedia.org/wiki/Endianness [`ByteOrder`]: trait.ByteOrder.html [`BigEndian`]: enum.BigEndian.html -- cgit v1.2.3