pub struct NativeEndian {}
Expand description
This is a marker type to mark layouts using native endian encoding. The alternative is BigEndian and LittleEndian encoding.
§Example
use binary_layout::prelude::*;
binary_layout!(my_layout, NativeEndian, {
field1: i16,
field2: u32,
});
Trait Implementations§
Source§impl Endianness for NativeEndian
impl Endianness for NativeEndian
Auto Trait Implementations§
impl Freeze for NativeEndian
impl RefUnwindSafe for NativeEndian
impl Send for NativeEndian
impl Sync for NativeEndian
impl Unpin for NativeEndian
impl UnwindSafe for NativeEndian
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