pub enum Endian {
Big,
Little,
}Variants§
Implementations§
Source§impl Endian
impl Endian
pub const fn word_from_bytes(self, bytes: &[u8]) -> u32
pub const fn short_from_bytes(self, bytes: &[u8]) -> u16
pub const fn dword_from_bytes(self, bytes: &[u8]) -> u64
pub const fn bytes_from_word(self, word: u32) -> [u8; 4]
Trait Implementations§
Source§impl Ord for Endian
impl Ord for Endian
Source§impl PartialOrd for Endian
impl PartialOrd for Endian
impl Copy for Endian
impl Eq for Endian
impl StructuralPartialEq for Endian
Auto Trait Implementations§
impl Freeze for Endian
impl RefUnwindSafe for Endian
impl Send for Endian
impl Sync for Endian
impl Unpin for Endian
impl UnwindSafe for Endian
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