Enum image::ImageError
[−]
[src]
pub enum ImageError { FormatError(String), DimensionError, UnsupportedError(String), UnsupportedColor(ColorType), NotEnoughData, IoError(Error), ImageEnd, }
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
Trait Implementations
impl From<DecodingError> for ImageError
[src]
fn from(err: DecodingError) -> ImageError
Performs the conversion.
impl From<Error> for ImageError
[src]
fn from(err: Error) -> ImageError
Performs the conversion.
impl From<DecodingError> for ImageError
[src]
fn from(err: DecodingError) -> ImageError
Performs the conversion.
impl Debug for ImageError
[src]
impl Display for ImageError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Error for ImageError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for ImageError
[src]
fn from(err: Error) -> ImageError
Performs the conversion.
impl From<Error> for ImageError
[src]
fn from(err: Error) -> ImageError
Performs the conversion.