Enum pix_engine::image::Error [−][src]
#[non_exhaustive]
pub enum Error {
InvalidImage((u32, u32), usize, PixelFormat),
InvalidFileType(Option<OsString>),
UnsupportedColorType(ColorType),
UnsupportedBitDepth(BitDepth),
IoError(Error),
DecodingError(DecodingError),
EncodingError(EncodingError),
Other(Cow<'static, str>),
}Expand description
The error type for Image operations.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalid image.
Invalid file type.
UnsupportedColorType(ColorType)Invalid color type.
Tuple Fields of UnsupportedColorType
0: ColorTypeUnsupportedBitDepth(BitDepth)Invalid bit depth.
Tuple Fields of UnsupportedBitDepth
0: BitDepthIoError(Error)I/O errors.
Tuple Fields of IoError
0: ErrorDecodingError(DecodingError)png decoding errors.
Tuple Fields of DecodingError
EncodingError(EncodingError)png encoding errors.
Tuple Fields of EncodingError
Unknown error.
Trait Implementations
Performs the conversion.
Performs the conversion.