pub struct Native;Expand description
Native endian.
This type performs no endianness conversion.
Trait Implementations§
Source§impl Endian for Native
impl Endian for Native
Source§fn convert_u16(&self, bytes: [u8; 2]) -> u16
fn convert_u16(&self, bytes: [u8; 2]) -> u16
Convert a
u16 from the source endian to the native endian.Source§fn convert_u32(&self, bytes: [u8; 4]) -> u32
fn convert_u32(&self, bytes: [u8; 4]) -> u32
Convert a
u32 from the source endian to the native endian.impl Copy for Native
Auto Trait Implementations§
impl Freeze for Native
impl RefUnwindSafe for Native
impl Send for Native
impl Sync for Native
impl Unpin for Native
impl UnwindSafe for Native
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