Enum image::ImageError
source · pub enum ImageError {
FormatError(String),
DimensionError,
UnsupportedError(String),
UnsupportedColor(ColorType),
NotEnoughData,
IoError(Error),
ImageEnd,
InsufficientMemory,
}
Expand description
An enumeration of Image errors
Variants
FormatError(String)
The Image is not formatted properly
DimensionError
The Image’s dimensions are either too small or too large
UnsupportedError(String)
The Decoder does not support this image format
UnsupportedColor(ColorType)
The Decoder does not support this color type
NotEnoughData
Not enough data was provided to the Decoder to decode the image
IoError(Error)
An I/O Error occurred while decoding the image
ImageEnd
The end of the image has been reached
InsufficientMemory
There is not enough memory to complete the given operation
Trait Implementations
sourceimpl Debug for ImageError
impl Debug for ImageError
sourceimpl Display for ImageError
impl Display for ImageError
sourceimpl Error for ImageError
impl Error for ImageError
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<DecodingError> for ImageError
impl From<DecodingError> for ImageError
sourcefn from(err: DecodingError) -> ImageError
fn from(err: DecodingError) -> ImageError
Converts to this type from the input type.
sourceimpl From<DecodingError> for ImageError
impl From<DecodingError> for ImageError
sourcefn from(err: DecodingError) -> ImageError
fn from(err: DecodingError) -> ImageError
Converts to this type from the input type.
sourceimpl From<Error> for ImageError
impl From<Error> for ImageError
sourcefn from(err: Error) -> ImageError
fn from(err: Error) -> ImageError
Converts to this type from the input type.
sourceimpl From<Error> for ImageError
impl From<Error> for ImageError
sourcefn from(err: Error) -> ImageError
fn from(err: Error) -> ImageError
Converts to this type from the input type.
sourceimpl From<TiffError> for ImageError
impl From<TiffError> for ImageError
sourcefn from(err: TiffError) -> ImageError
fn from(err: TiffError) -> ImageError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ImageError
impl Send for ImageError
impl Sync for ImageError
impl Unpin for ImageError
impl !UnwindSafe for ImageError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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