Enum tiff::error::TiffFormatError
source · #[non_exhaustive]pub enum TiffFormatError {
Show 21 variants
TiffSignatureNotFound,
TiffSignatureInvalid,
ImageFileDirectoryNotFound,
InconsistentSizesEncountered,
UnexpectedCompressedData {
actual_bytes: usize,
required_bytes: usize,
},
InconsistentStripSamples {
actual_samples: usize,
required_samples: usize,
},
InvalidDimensions(u32, u32),
InvalidTag,
InvalidTagValueType(Tag),
RequiredTagNotFound(Tag),
UnknownPredictor(u16),
UnknownPlanarConfiguration(u16),
ByteExpected(Value),
UnsignedIntegerExpected(Value),
SignedIntegerExpected(Value),
Format(String),
RequiredTagEmpty(Tag),
StripTileTagConflict,
CycleInOffsets,
JpegDecoder(JpegDecoderError),
SamplesPerPixelIsZero,
}
Expand description
The image is not formatted properly.
This indicates that the encoder producing the image might behave incorrectly or that the input file has been corrupted.
The list of variants may grow to incorporate errors of future features. Matching against this exhaustively is not covered by interface stability guarantees.
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.
TiffSignatureNotFound
TiffSignatureInvalid
ImageFileDirectoryNotFound
InconsistentSizesEncountered
UnexpectedCompressedData
InconsistentStripSamples
InvalidDimensions(u32, u32)
InvalidTag
InvalidTagValueType(Tag)
RequiredTagNotFound(Tag)
UnknownPredictor(u16)
UnknownPlanarConfiguration(u16)
ByteExpected(Value)
UnsignedIntegerExpected(Value)
SignedIntegerExpected(Value)
Format(String)
RequiredTagEmpty(Tag)
StripTileTagConflict
CycleInOffsets
JpegDecoder(JpegDecoderError)
SamplesPerPixelIsZero
Trait Implementations§
source§impl Clone for TiffFormatError
impl Clone for TiffFormatError
source§fn clone(&self) -> TiffFormatError
fn clone(&self) -> TiffFormatError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TiffFormatError
impl Debug for TiffFormatError
source§impl Display for TiffFormatError
impl Display for TiffFormatError
source§impl From<TiffFormatError> for TiffError
impl From<TiffFormatError> for TiffError
source§fn from(err: TiffFormatError) -> TiffError
fn from(err: TiffFormatError) -> TiffError
Converts to this type from the input type.
source§impl PartialEq for TiffFormatError
impl PartialEq for TiffFormatError
impl StructuralPartialEq for TiffFormatError
Auto Trait Implementations§
impl Freeze for TiffFormatError
impl !RefUnwindSafe for TiffFormatError
impl Send for TiffFormatError
impl Sync for TiffFormatError
impl Unpin for TiffFormatError
impl !UnwindSafe for TiffFormatError
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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