Enum image2::Error [−][src]
pub enum Error {
OutOfBounds(usize, usize),
UnableToOpenImage(String),
UnableToWriteImage(String),
CannotReadImage(String),
InvalidDimensions(usize, usize, usize),
FailedColorConversion(String, String),
MultipleImagesNotSupported(String),
InvalidType,
Message(String),
Magick(Error),
GlutinWindowCreation(CreationError),
GlutinContext(ContextError),
}
Expand description
Enumerates possible errors
Variants
Pixel is out of bounds
UnableToOpenImage(String)
An image file cannot be opened
Tuple Fields of UnableToOpenImage
0: String
UnableToWriteImage(String)
An image file cannot be written
Tuple Fields of UnableToWriteImage
0: String
CannotReadImage(String)
Image data is invalid
Tuple Fields of CannotReadImage
0: String
Invalid image dimensions
Colorspace conversion failed
MultipleImagesNotSupported(String)
Unable to write an additional image to a single image file
Tuple Fields of MultipleImagesNotSupported
0: String
Invalid image data type
Message(String)
Generic error
Tuple Fields of Message
0: String
Magick(Error)
Magick I/O error type
Tuple Fields of Magick
0: Error
GlutinWindowCreation(CreationError)
Window creation error
Tuple Fields of GlutinWindowCreation
GlutinContext(ContextError)
Glutin context error
Tuple Fields of GlutinContext
0: ContextError
Trait Implementations
Performs the conversion.
Performs the conversion.