a/math/numbers/byte_order.rs
1/// The order of the bytes of the absolute value of a [`Number`](super::Number).
2#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
3pub enum ByteOrder {
4 /// The most significant byte first: `0x0102` is `[0x01, 0x02]`, as
5 /// [`u16::to_be_bytes`] writes it.
6 BigEndian,
7 /// The least significant byte first: `0x0102` is `[0x02, 0x01]`, as
8 /// [`u16::to_le_bytes`] writes it.
9 LittleEndian,
10}