#[non_exhaustive]pub enum Endian {
Big,
Little,
Other(String),
}
Expand description
The endianness of the target architecture.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Big
Most significant byte stored first.
big
Little
Least significant byte stored first.
little
Other(String)
Unknown value
Implementations§
Trait Implementations§
Source§impl Ord for Endian
impl Ord for Endian
Source§impl PartialOrd for Endian
impl PartialOrd for Endian
impl Eq for Endian
impl StructuralPartialEq for Endian
Auto Trait Implementations§
impl Freeze for Endian
impl RefUnwindSafe for Endian
impl Send for Endian
impl Sync for Endian
impl Unpin for Endian
impl UnwindSafe for Endian
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