pub enum ByteOrder {
BigEndian,
LittleEndian,
}Expand description
The order of the bytes of the absolute value of a Number.
Variants§
BigEndian
The most significant byte first: 0x0102 is [0x01, 0x02], as
u16::to_be_bytes writes it.
LittleEndian
The least significant byte first: 0x0102 is [0x02, 0x01], as
u16::to_le_bytes writes it.
Trait Implementations§
impl Copy for ByteOrder
impl Eq for ByteOrder
impl StructuralPartialEq for ByteOrder
Auto Trait Implementations§
impl Freeze for ByteOrder
impl RefUnwindSafe for ByteOrder
impl Send for ByteOrder
impl Sync for ByteOrder
impl Unpin for ByteOrder
impl UnsafeUnpin for ByteOrder
impl UnwindSafe for ByteOrder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more