Enum Endianness

enum Endianness

An endianness that is selectable at run-time.

Variants

Little

Little endian byte order.

Big

Big endian byte order.

Implementations

impl Clone for Endianness

fn clone(self: &Self) -> Endianness

impl Copy for Endianness

impl Debug for Endianness

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Default for Endianness

fn default() -> Endianness

impl Endian for Endianness

fn from_big_endian(big_endian: bool) -> Option<Self>
fn is_big_endian(self: Self) -> bool

impl Eq for Endianness

impl Freeze for Endianness

impl Hash for Endianness

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for Endianness

fn eq(self: &Self, other: &Endianness) -> bool

impl RefUnwindSafe for Endianness

impl Send for Endianness

impl StructuralPartialEq for Endianness

impl Sync for Endianness

impl Unpin for Endianness

impl UnwindSafe for Endianness

impl<T> Any for Endianness

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Endianness

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Endianness

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Endianness

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Endianness

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Endianness

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Endianness

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Endianness

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Endianness

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>