Enum image::ImageError [-] [+] [src]

pub enum ImageError {
    FormatError(String),
    DimensionError,
    UnsupportedError(String),
    UnsupportedColor(ColorType),
    NotEnoughData,
    IoError(IoError),
    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 Display for ImageError

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

impl FromError<IoError> for ImageError

fn from_error(err: IoError) -> ImageError

Derived Implementations

impl Eq for ImageError

fn assert_receiver_is_total_eq(&self)

impl PartialEq for ImageError

fn eq(&self, __arg_0: &ImageError) -> bool

fn ne(&self, __arg_0: &ImageError) -> bool

impl Debug for ImageError

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

impl Clone for ImageError

fn clone(&self) -> ImageError

fn clone_from(&mut self, source: &Self)