pub enum TiffError {
FormatError(TiffFormatError),
UnsupportedError(TiffUnsupportedError),
IoError(Error),
LimitsExceeded,
IntSizeError,
}
Expand description
Tiff error kinds.
Variants
FormatError(TiffFormatError)
The Image is not formatted properly.
UnsupportedError(TiffUnsupportedError)
The Decoder does not support features required by the image.
IoError(Error)
An I/O Error occurred while decoding the image.
LimitsExceeded
The Limits of the Decoder is exceeded.
IntSizeError
An integer conversion to or from a platform size failed, either due to limits of the platform size or limits of the format.
Trait Implementations
sourceimpl Error for TiffError
impl Error for TiffError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl From<FromUtf8Error> for TiffError
impl From<FromUtf8Error> for TiffError
sourcefn from(_err: FromUtf8Error) -> TiffError
fn from(_err: FromUtf8Error) -> TiffError
Performs the conversion.
sourceimpl From<TiffFormatError> for TiffError
impl From<TiffFormatError> for TiffError
sourcefn from(err: TiffFormatError) -> TiffError
fn from(err: TiffFormatError) -> TiffError
Performs the conversion.
sourceimpl From<TiffUnsupportedError> for TiffError
impl From<TiffUnsupportedError> for TiffError
sourcefn from(err: TiffUnsupportedError) -> TiffError
fn from(err: TiffUnsupportedError) -> TiffError
Performs the conversion.
sourceimpl From<TryFromIntError> for TiffError
impl From<TryFromIntError> for TiffError
sourcefn from(_err: TryFromIntError) -> TiffError
fn from(_err: TryFromIntError) -> TiffError
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TiffError
impl Send for TiffError
impl Sync for TiffError
impl Unpin for TiffError
impl UnwindSafe for TiffError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more