pub enum Endian {
Little,
Big,
}Variants§
Implementations§
Source§impl Endian
impl Endian
pub fn native() -> Self
pub fn read_u16<R: Read>(&self, r: &mut R) -> Result<u16, Error>
pub fn read_u32<R: Read>(&self, r: &mut R) -> Result<u32, Error>
pub fn read_u64<R: Read>(&self, r: &mut R) -> Result<u64, Error>
pub fn write_u16<W: Write>(&self, w: &mut W, val: u16) -> Result<(), Error>
pub fn write_u32<W: Write>(&self, w: &mut W, val: u32) -> Result<(), Error>
pub fn write_u64<W: Write>(&self, w: &mut W, val: u64) -> Result<(), Error>
Trait Implementations§
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