[][src]Enum declio::ctx::Endian

pub enum Endian {
    Big,
    Little,
}

The endianness, or byte order, of primitive types.

Variants

Big

Big-endian (most-significant-byte first).

Little

Little-endian (least-significant-byte first).

Implementations

impl Endian[src]

pub const fn native() -> Self[src]

The native endianness of the target architecture.

Warning - This should not be used for cross-platform I/O in general. While dealing with native-endian bytes is marginally more efficient, it may cause incompatibilities if the data is shared between multiple devices where the native byte orders are different.

pub const fn network() -> Self[src]

"Network-endian", an alias for big-endian, the default endianness.

Trait Implementations

impl Clone for Endian[src]

impl Copy for Endian[src]

impl Debug for Endian[src]

impl Decode<Endian> for u8[src]

impl Decode<Endian> for u16[src]

impl Decode<Endian> for f32[src]

impl Decode<Endian> for f64[src]

impl Decode<Endian> for u32[src]

impl Decode<Endian> for u64[src]

impl Decode<Endian> for u128[src]

impl Decode<Endian> for i8[src]

impl Decode<Endian> for i16[src]

impl Decode<Endian> for i32[src]

impl Decode<Endian> for i64[src]

impl Decode<Endian> for i128[src]

impl Default for Endian[src]

fn default() -> Self[src]

(Network- / Big-endian) The default endianness used to encode primitives.

impl Encode<Endian> for u8[src]

impl Encode<Endian> for u16[src]

impl Encode<Endian> for f32[src]

impl Encode<Endian> for f64[src]

impl Encode<Endian> for u32[src]

impl Encode<Endian> for u64[src]

impl Encode<Endian> for u128[src]

impl Encode<Endian> for i8[src]

impl Encode<Endian> for i16[src]

impl Encode<Endian> for i32[src]

impl Encode<Endian> for i64[src]

impl Encode<Endian> for i128[src]

impl PartialEq<Endian> for Endian[src]

impl StructuralPartialEq for Endian[src]

Auto Trait Implementations

impl RefUnwindSafe for Endian

impl Send for Endian

impl Sync for Endian

impl Unpin for Endian

impl UnwindSafe for Endian

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.