Struct binary_layout::LittleEndian[][src]

pub struct LittleEndian {}
Expand description

This is a marker type to mark layouts using little endian encoding. The alternative is BigEndian encoding.

Example

use binary_layout::prelude::*;

define_layout!(my_layout, LittleEndian, {
  field1: i16,
  field2: u32,
});

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.