pub trait Endian: AllBytesValid + Copy + Sized {
    // Required methods
    fn into_le(self) -> Self;
    fn from_le(self) -> Self;
}
Expand description

Trait used for the implementation of the Le type.

Required Methods§

source

fn into_le(self) -> Self

Converts this value and any aggregate fields (if any) into little-endian byte order

source

fn from_le(self) -> Self

Converts this value and any aggregate fields (if any) from little-endian byte order

Implementations on Foreign Types§

source§

impl Endian for u32

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl Endian for i8

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl<T1: Endian, T2: Endian, T3: Endian, T4: Endian> Endian for (T1, T2, T3, T4)

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl<T1: Endian, T2: Endian, T3: Endian, T4: Endian, T5: Endian, T6: Endian, T7: Endian, T8: Endian, T9: Endian, T10: Endian> Endian for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl<T1: Endian, T2: Endian> Endian for (T1, T2)

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl Endian for ()

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl Endian for i16

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl Endian for u64

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl Endian for i32

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl Endian for i64

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl<T1: Endian, T2: Endian, T3: Endian> Endian for (T1, T2, T3)

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl Endian for f32

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl<T1: Endian, T2: Endian, T3: Endian, T4: Endian, T5: Endian, T6: Endian, T7: Endian> Endian for (T1, T2, T3, T4, T5, T6, T7)

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl<T1: Endian, T2: Endian, T3: Endian, T4: Endian, T5: Endian> Endian for (T1, T2, T3, T4, T5)

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl Endian for u16

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl Endian for f64

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl<T1: Endian> Endian for (T1,)

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl<T1: Endian, T2: Endian, T3: Endian, T4: Endian, T5: Endian, T6: Endian> Endian for (T1, T2, T3, T4, T5, T6)

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl<T1: Endian, T2: Endian, T3: Endian, T4: Endian, T5: Endian, T6: Endian, T7: Endian, T8: Endian> Endian for (T1, T2, T3, T4, T5, T6, T7, T8)

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl<T1: Endian, T2: Endian, T3: Endian, T4: Endian, T5: Endian, T6: Endian, T7: Endian, T8: Endian, T9: Endian> Endian for (T1, T2, T3, T4, T5, T6, T7, T8, T9)

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

source§

impl Endian for u8

source§

fn into_le(self) -> Self

source§

fn from_le(self) -> Self

Implementors§