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