wai_bindgen_wasmer

Trait Endian

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Endian for f32

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 Endian for i8

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 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 Endian for u8

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 u32

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 ()

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> Endian for (T1, T2)

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<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> Endian for (T1, T2, T3, T4, T5)

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> 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, 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<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

Implementors§