Enum ByteOrder
pub enum ByteOrder
Byte order of the TIFF file.
Variants
-
LittleEndian little endian byte order
-
BigEndian big endian byte order
Implementations
impl ByteOrder
const fn native() -> SelfGet the byte order representing the running target.
The infallibility of this method represents the fact that only little and big endian systems are supported by the library. No mixed endian and no other weird stuff. (Note: as of Rust 1.90 this is a tautology as Rust itself only has those two kinds).
fn convert(self, ty: Type, buffer: &mut [u8], to: ByteOrder)Given a typed buffer, convert its contents to the specified byte order in-place.
The buffer is assumed to represent an array of the given type. If the length of the buffer is not divisible into an integer number of values, the behavior for the remaining bytes it not specified.
Trait Implementations
impl Clone for ByteOrder
fn clone(&self) -> Self
impl Copy for ByteOrder
impl Debug for ByteOrder
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ByteOrder
impl PartialEq for ByteOrder
fn eq(&self, other: &Self) -> bool