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) -> ByteOrder
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: &ByteOrder) -> 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ByteOrder
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ByteOrder
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ByteOrder
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ByteOrder
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for ByteOrder
where
T: ?Sized,
impl<T> ToOwned for ByteOrder
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ByteOrder
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ByteOrder
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ByteOrder
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>