#[non_exhaustive]pub enum Type {
Show 16 variants
BYTE,
ASCII,
SHORT,
LONG,
RATIONAL,
SBYTE,
UNDEFINED,
SSHORT,
SLONG,
SRATIONAL,
FLOAT,
DOUBLE,
IFD,
LONG8,
SLONG8,
IFD8,
}
Expand description
The type of an IFD entry (a 2 byte field).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BYTE
8-bit unsigned integer
ASCII
8-bit byte that contains a 7-bit ASCII code; the last byte must be zero
SHORT
16-bit unsigned integer
LONG
32-bit unsigned integer
RATIONAL
Fraction stored as two 32-bit unsigned integers
SBYTE
8-bit signed integer
UNDEFINED
8-bit byte that may contain anything, depending on the field
SSHORT
16-bit signed integer
SLONG
32-bit signed integer
SRATIONAL
Fraction stored as two 32-bit signed integers
FLOAT
32-bit IEEE floating point
DOUBLE
64-bit IEEE floating point
IFD
32-bit unsigned integer (offset)
LONG8
BigTIFF 64-bit unsigned integer
SLONG8
BigTIFF 64-bit signed integer
IFD8
BigTIFF 64-bit unsigned integer (offset)
Implementations§
Trait Implementations§
source§impl PartialEq<Type> for Type
impl PartialEq<Type> for Type
impl Copy for Type
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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> 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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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