pub enum Dynamic {
Big,
Little,
}Expand description
Either big or little endian, chosen at runtime.
Variants§
Trait Implementations§
Source§impl Endian for Dynamic
impl Endian for Dynamic
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 Dynamic
impl Eq for Dynamic
impl StructuralPartialEq for Dynamic
Auto Trait Implementations§
impl Freeze for Dynamic
impl RefUnwindSafe for Dynamic
impl Send for Dynamic
impl Sync for Dynamic
impl Unpin for Dynamic
impl UnwindSafe for Dynamic
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