#[non_exhaustive]pub enum Endian<'a> {
Big,
Little,
Other(Cow<'a, str>),
}
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(Cow<'a, str>)
Unknown value
Implementations§
Trait Implementations§
Source§impl<'a> Ord for Endian<'a>
impl<'a> Ord for Endian<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Endian<'a>
impl<'a> PartialOrd for Endian<'a>
impl<'a> Eq for Endian<'a>
impl<'a> StructuralPartialEq for Endian<'a>
Auto Trait Implementations§
impl<'a> Freeze for Endian<'a>
impl<'a> RefUnwindSafe for Endian<'a>
impl<'a> Send for Endian<'a>
impl<'a> Sync for Endian<'a>
impl<'a> Unpin for Endian<'a>
impl<'a> UnwindSafe for Endian<'a>
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