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(String)The Image is not formatted properly
DimensionErrorThe Image's dimensions are either too small or too large
UnsupportedError(String)The Decoder does not support this image format
UnsupportedColor(ColorType)The Decoder does not support this color type
NotEnoughDataNot enough data was provided to the Decoder to decode the image
IoError(Error)An I/O Error occurred while decoding the image
ImageEndThe end of the image has been reached
Trait Implementations
impl From<DecodingError> for ImageError[src]
impl From<DecodingError> for ImageErrorfn from(err: DecodingError) -> ImageError[src]
fn from(err: DecodingError) -> ImageErrorPerforms the conversion.
impl From<Error> for ImageError[src]
impl From<Error> for ImageErrorfn from(err: Error) -> ImageError[src]
fn from(err: Error) -> ImageErrorPerforms the conversion.
impl From<DecodingError> for ImageError[src]
impl From<DecodingError> for ImageErrorfn from(err: DecodingError) -> ImageError[src]
fn from(err: DecodingError) -> ImageErrorPerforms the conversion.
impl From<TiffError> for ImageError[src]
impl From<TiffError> for ImageErrorfn from(err: TiffError) -> ImageError[src]
fn from(err: TiffError) -> ImageErrorPerforms the conversion.
impl Debug for ImageError[src]
impl Debug for ImageErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for ImageError[src]
impl Display for ImageErrorfn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Error for ImageError[src]
impl Error for ImageErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>[src]
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
impl From<Error> for ImageError[src]
impl From<Error> for ImageErrorfn from(err: Error) -> ImageError[src]
fn from(err: Error) -> ImageErrorPerforms the conversion.
Auto Trait Implementations
impl Send for ImageError
impl Send for ImageErrorimpl Sync for ImageError
impl Sync for ImageError