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() -> Self

Get 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

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

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for ByteOrder where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for ByteOrder where ST: ?Sized, DT: ?Sized,

impl<T> Any for ByteOrder where T: 'static + ?Sized,

impl<T> Borrow<T> for ByteOrder where T: ?Sized,

impl<T> BorrowMut<T> for ByteOrder where T: ?Sized,

impl<T> CloneToUninit for ByteOrder where T: Clone,

impl<T> From<T> for ByteOrder

impl<T> Read<Exclusive, BecauseExclusive> for ByteOrder where T: ?Sized,

impl<T> ToOwned for ByteOrder where T: Clone,

impl<T, U> Into<U> for ByteOrder where U: From<T>,

impl<T, U> TryFrom<U> for ByteOrder where U: Into<T>,

impl<T, U> TryInto<U> for ByteOrder where U: TryFrom<T>,