pub enum Endianness {
Little,
Big,
}Expand description
The byte order of a multi-byte scalar on the wire.
Folded by every multi-byte integer and float, and by an enum’s discriminant. Note that a
plain u32 folds Endianness::Little rather than leaving endianness unstated: an
unattributed field is always wire-identical to an explicit #[byteable(little_endian)]
one, so LittleEndian<u32> and u32 must - and do - fingerprint identically, while
BigEndian<u32> differs. See impl_fingerprint_int_endian! in src/core_types.rs.
Variants§
Trait Implementations§
Source§impl Clone for Endianness
impl Clone for Endianness
impl Copy for Endianness
Auto Trait Implementations§
impl Forget for Endianness
impl Freeze for Endianness
impl Move for Endianness
impl RefUnwindSafe for Endianness
impl Send for Endianness
impl Sync for Endianness
impl Unpin for Endianness
impl UnsafeUnpin for Endianness
impl UnwindSafe for Endianness
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