For all the integer primitives there are functions for converting the endianness: from_le, to_le, from_be, to_be and swap_bytes (they probably should be a trait but they aren't for whatever reason).
The floating point types f32 and f64 don't have these methods defined.