Enum tiff::TiffFormatError
source · [−]pub enum TiffFormatError {
Show 17 variants
TiffSignatureNotFound,
TiffSignatureInvalid,
ImageFileDirectoryNotFound,
InconsistentSizesEncountered,
UnexpectedCompressedData {
actual_bytes: usize,
required_bytes: usize,
},
InconsistentStripSamples {
actual_samples: usize,
required_samples: usize,
},
InvalidTag,
InvalidTagValueType(Tag),
RequiredTagNotFound(Tag),
UnknownPredictor(u16),
ByteExpected(Value),
UnsignedIntegerExpected(Value),
SignedIntegerExpected(Value),
Format(String),
RequiredTagEmpty(Tag),
StripTileTagConflict,
CycleInOffsets,
// some variants omitted
}
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
TiffSignatureNotFound
TiffSignatureInvalid
ImageFileDirectoryNotFound
InconsistentSizesEncountered
UnexpectedCompressedData
InconsistentStripSamples
InvalidTag
InvalidTagValueType(Tag)
RequiredTagNotFound(Tag)
UnknownPredictor(u16)
ByteExpected(Value)
UnsignedIntegerExpected(Value)
SignedIntegerExpected(Value)
Format(String)
RequiredTagEmpty(Tag)
StripTileTagConflict
CycleInOffsets
Trait Implementations
sourceimpl Clone for TiffFormatError
impl Clone for TiffFormatError
sourcefn clone(&self) -> TiffFormatError
fn clone(&self) -> TiffFormatError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TiffFormatError
impl Debug for TiffFormatError
sourceimpl Display for TiffFormatError
impl Display for TiffFormatError
sourceimpl From<TiffFormatError> for TiffError
impl From<TiffFormatError> for TiffError
sourcefn from(err: TiffFormatError) -> TiffError
fn from(err: TiffFormatError) -> TiffError
Converts to this type from the input type.
sourceimpl PartialEq<TiffFormatError> for TiffFormatError
impl PartialEq<TiffFormatError> for TiffFormatError
sourcefn eq(&self, other: &TiffFormatError) -> bool
fn eq(&self, other: &TiffFormatError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TiffFormatError) -> bool
fn ne(&self, other: &TiffFormatError) -> bool
This method tests for !=
.
impl StructuralPartialEq for TiffFormatError
Auto Trait Implementations
impl RefUnwindSafe for TiffFormatError
impl Send for TiffFormatError
impl Sync for TiffFormatError
impl Unpin for TiffFormatError
impl UnwindSafe for TiffFormatError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more