pub enum ByteOrder {
LittleEndian,
BigEndian,
}Expand description
Byte order indicator from the TIFF header.
Variants§
Implementations§
Source§impl ByteOrder
impl ByteOrder
Sourcepub fn read_u16(self, bytes: [u8; 2]) -> u16
pub fn read_u16(self, bytes: [u8; 2]) -> u16
Read a u16 from a 2-byte array in this byte order.
Sourcepub fn read_u32(self, bytes: [u8; 4]) -> u32
pub fn read_u32(self, bytes: [u8; 4]) -> u32
Read a u32 from a 4-byte array in this byte order.
Sourcepub fn read_u64(self, bytes: [u8; 8]) -> u64
pub fn read_u64(self, bytes: [u8; 8]) -> u64
Read a u64 from an 8-byte array in this byte order.
Trait Implementations§
impl Copy for ByteOrder
impl Eq 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 UnsafeUnpin for ByteOrder
impl UnwindSafe for ByteOrder
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