Enum image::ImageError [] [src]

pub enum ImageError {
    FormatError(String),
    DimensionError,
    UnsupportedError(String),
    UnsupportedColor(ColorType),
    NotEnoughData,
    IoError(Error),
    ImageEnd,
}

An enumeration of Image errors

Variants

The Image is not formatted properly

The Image's dimensions are either too small or too large

The Decoder does not support this image format

The Decoder does not support this color type

Not enough data was provided to the Decoder to decode the image

An I/O Error occurred while decoding the image

The end of the image has been reached

Trait Implementations

impl From<DecodingError> for ImageError
[src]

[src]

Performs the conversion.

impl From<Error> for ImageError
[src]

[src]

Performs the conversion.

impl From<DecodingError> for ImageError
[src]

[src]

Performs the conversion.

impl Debug for ImageError
[src]

[src]

Formats the value using the given formatter.

impl Display for ImageError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for ImageError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl From<Error> for ImageError
[src]

[src]

Performs the conversion.