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
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).