Releases: Enet4/byteordered
Releases · Enet4/byteordered
v0.6.0
Changes
- The minimum Rust version required was bumped to 1.41.1 (#6)
- The
Endian
trait now impliesCopy
, and all its methods receiveself
instead of&self
(#12)- This should not affect most users, unless the universal function calling syntax was used (e.g.
Endian::read_u16(e, src)
).
- This should not affect most users, unless the universal function calling syntax was used (e.g.
New
read_*_into
methods were added, analogous to the ones inbyteorder
(#8)- New
set_endianness
method inByteOrdered
(#11)
Fixes
- Corrected typos in documented methods (#7)
Enhancements
- Added more
#[inline]
attributes, giving the compiler more room for optimizations in consumers
Chores
v0.5.0
Breaking
- The method
ByteOrdered#endianness()
no longer returns the endianness value as known at run-time (of typeEndianness
), but the actual endianness information as known by the compiler (typeE
). This value should be more useful in general, and can be converted to anEndianness
(From
/Into
) if that is really necessary. - The minimum Rust compiler version has been bumped to 1.31.0.
- The Cargo feature
i128
no longer exists and should just be removed from your project. Everything else should work as intended without it.
v0.4.0
New
- A new macro
with_order!
provides an explicitly monomorphized scope for reading and writing. From
implementation forByteOrdered
, which can now be built from a(T, E)
tuple.- New methods for
ByteOrdered
:into_parts
(returns a tuple) andas_mut
(for borrowing the source into a newByteOrdered
) - Derive
Clone
forByteOrdered
(whereT: Clone
andE: Clone
, the latter is guaranteed for existing implementers).
Breaking
No breaking changes that I know of. This version bump was to better pin down the moment where all these new features were introduced.
v0.3.1
v0.3.0
New
As part of an extension to the Endian
trait, Methods into_opposite
and is_native
are now always available on both ByteOrdered
and the material endianness types StaticEndianness<B>
and Endianness
.
Changes
Other definitions of into_opposite
were moved into the Endian
trait. If you find a compilation error, you might need to use
it.
Other
Minor documentation improvements.
v0.2.0
Breaking changes
Endianness::le_iif
andEndianness::be_iif
were renamed toEndianness::le_iff
andEndianness::be_iff
(an unfortunate typo...)- the compiler's fuzzy name search should recommend you the right method to call if you were already using 0.1.0
New
ByteOrdered
now exposes theBufRead
andSeek
implementations of the inner type.