pub struct LittleEndian {}
Expand description
This is a marker type to mark layouts using little endian encoding. The alternative is BigEndian and NativeEndian encoding.
§Example
use binary_layout::prelude::*;
binary_layout!(my_layout, LittleEndian, {
field1: i16,
field2: u32,
});
Trait Implementations§
Source§impl Endianness for LittleEndian
impl Endianness for LittleEndian
Auto Trait Implementations§
impl Freeze for LittleEndian
impl RefUnwindSafe for LittleEndian
impl Send for LittleEndian
impl Sync for LittleEndian
impl Unpin for LittleEndian
impl UnwindSafe for LittleEndian
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more