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

The Image is not formatted properly

DimensionError

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

UnsupportedError

The Decoder does not support this image format

UnsupportedColor

The Decoder does not support this color type

NotEnoughData

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

IoError

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

fn from(err: DecodingError) -> ImageError

impl From<Error> for ImageError

fn from(err: Error) -> ImageError

impl From<DecodingError> for ImageError

fn from(err: DecodingError) -> ImageError

impl Display for ImageError

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

impl Error for ImageError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl From<Error> for ImageError

fn from(err: Error) -> ImageError

impl From<Error> for ImageError

fn from(err: Error) -> ImageError

Derived Implementations

impl Debug for ImageError

fn fmt(&self, __arg_0: &mut Formatter) -> Result