I see that before Rust 1.0, there used to be functions like `std::mem::from_be16` as well as `core::mem::from_be16`. The documentation for both modules claims that all of the byte swapping routines are deprecated, and indeed they were removed for Rust 1.0.

Is there anything built into Rust which can do the swap and is not deprecated or would I have to implement my own?