]> git.lizzy.rs Git - rust.git/commit
Add a ByteOrder trait for abstracting over endian conversions
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>
Sun, 15 Jun 2014 05:53:55 +0000 (22:53 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 19 Jun 2014 00:01:34 +0000 (17:01 -0700)
commit87c529c43a41e0c04a468cd2b301013df629b040
treee6e5397fe42d407f92a0683303f13ca88eb561a6
parent1273f94cbb19608e6a4e02c54d8543f6fe648a47
Add a ByteOrder trait for abstracting over endian conversions

The `Bitwise::swap_bytes` method was also moved into the `ByteOrder` trait. This was because it works on the byte level rather than the bit level.
src/libcore/mem.rs
src/libcore/num/int_macros.rs
src/libcore/num/mod.rs
src/libcore/num/uint_macros.rs