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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more