Function std::mem::to_be16Deprecated[src]

pub fn to_be16(x: u16) -> u16

Convert an u16 to big endian from the target's endianness.

On big endian, this is a no-op. On little endian, the bytes are swapped.