pub enum ByteOrder {
BigEndian,
LittleEndian,
}Variants§
Implementations§
Source§impl ByteOrder
impl ByteOrder
Sourcepub fn u8(&self, bytes: [u8; 1]) -> u8
pub fn u8(&self, bytes: [u8; 1]) -> u8
cast a $lenght-byte array to $type, respecting byte order
Sourcepub fn i8(&self, bytes: [u8; 1]) -> i8
pub fn i8(&self, bytes: [u8; 1]) -> i8
cast a $lenght-byte array to $type, respecting byte order
Sourcepub fn u16(&self, bytes: [u8; 2]) -> u16
pub fn u16(&self, bytes: [u8; 2]) -> u16
cast a $lenght-byte array to $type, respecting byte order
Sourcepub fn i16(&self, bytes: [u8; 2]) -> i16
pub fn i16(&self, bytes: [u8; 2]) -> i16
cast a $lenght-byte array to $type, respecting byte order
Sourcepub fn u32(&self, bytes: [u8; 4]) -> u32
pub fn u32(&self, bytes: [u8; 4]) -> u32
cast a $lenght-byte array to $type, respecting byte order
Sourcepub fn i32(&self, bytes: [u8; 4]) -> i32
pub fn i32(&self, bytes: [u8; 4]) -> i32
cast a $lenght-byte array to $type, respecting byte order
Sourcepub fn u64(&self, bytes: [u8; 8]) -> u64
pub fn u64(&self, bytes: [u8; 8]) -> u64
cast a $lenght-byte array to $type, respecting byte order
Sourcepub fn i64(&self, bytes: [u8; 8]) -> i64
pub fn i64(&self, bytes: [u8; 8]) -> i64
cast a $lenght-byte array to $type, respecting byte order
Trait Implementations§
impl Copy for ByteOrder
impl StructuralPartialEq for ByteOrder
Auto Trait Implementations§
impl Freeze for ByteOrder
impl RefUnwindSafe for ByteOrder
impl Send for ByteOrder
impl Sync for ByteOrder
impl Unpin for ByteOrder
impl UnwindSafe for ByteOrder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)