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