Enum TiffFormatError

#[non_exhaustive]
pub enum TiffFormatError

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.

Variants

TiffSignatureNotFound
TiffSignatureInvalid
ImageFileDirectoryNotFound
InconsistentSizesEncountered
InvalidDimensions(u32, u32)
InvalidTag
InvalidTagValueType(Tag)
RequiredTagNotFound(Tag)
UnknownPredictor(u16)
UnknownPlanarConfiguration(u16)
InvalidTypeForTag
InvalidCountForTag(Tag, usize)
StripTileTagConflict
CycleInOffsets
SamplesPerPixelIsZero
CompressedDataCorrupt(String)

Trait Implementations

impl Clone for TiffFormatError

fn clone(&self) -> TiffFormatError

impl Debug for TiffFormatError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for TiffFormatError

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

impl Error for TiffFormatError

fn source(&self) -> Option<&dyn Error + 'static>

impl PartialEq for TiffFormatError

fn eq(&self, other: &TiffFormatError) -> bool

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 UnsafeUnpin for TiffFormatError

impl UnwindSafe for TiffFormatError

Blanket Implementations

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

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for TiffFormatError

fn from(t: T) -> T

Returns the argument unchanged.

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

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for TiffFormatError where T: Display + ?Sized,

fn to_string(&self) -> String

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>