pub enum ImageErrors {
Show 16 variants
ImageDecodeErrors(String),
DimensionsMisMatch(usize, usize),
UnsupportedColorspace(ColorSpace, &'static str, &'static [ColorSpace]),
NoImageForOperations,
NoImageForEncoding,
NoImageBuffer,
OperationsError(ImageOperationsErrors),
EncodeErrors(ImgEncodeErrors),
GenericString(String),
GenericStr(&'static str),
WrongTypeId(TypeId, TypeId),
ChannelErrors(ChannelErrors),
ImageDecoderNotIncluded(ImageFormat),
ImageDecoderNotImplemented(ImageFormat),
IoError(Error),
ImageOperationNotImplemented(&'static str, BitType),
}Expand description
All possible image errors that can occur.
This is the grandfather of image errors and contains all decoding,processing and encoding errors possible
Variants§
ImageDecodeErrors(String)
DimensionsMisMatch(usize, usize)
UnsupportedColorspace(ColorSpace, &'static str, &'static [ColorSpace])
NoImageForOperations
NoImageForEncoding
NoImageBuffer
OperationsError(ImageOperationsErrors)
EncodeErrors(ImgEncodeErrors)
GenericString(String)
GenericStr(&'static str)
WrongTypeId(TypeId, TypeId)
ChannelErrors(ChannelErrors)
ImageDecoderNotIncluded(ImageFormat)
ImageDecoderNotImplemented(ImageFormat)
IoError(Error)
ImageOperationNotImplemented(&'static str, BitType)
Trait Implementations§
Source§impl Debug for ImageErrors
impl Debug for ImageErrors
Source§impl Display for ImageErrors
impl Display for ImageErrors
Source§impl Error for ImageErrors
impl Error for ImageErrors
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<&'static str> for ImageErrors
impl From<&'static str> for ImageErrors
Source§fn from(s: &'static str) -> ImageErrors
fn from(s: &'static str) -> ImageErrors
Converts to this type from the input type.
Source§impl From<BmpDecoderErrors> for ImageErrors
impl From<BmpDecoderErrors> for ImageErrors
Source§fn from(value: BmpDecoderErrors) -> Self
fn from(value: BmpDecoderErrors) -> Self
Converts to this type from the input type.
Source§impl From<ChannelErrors> for ImageErrors
impl From<ChannelErrors> for ImageErrors
Source§fn from(value: ChannelErrors) -> Self
fn from(value: ChannelErrors) -> Self
Converts to this type from the input type.
Source§impl From<DecodeErrors> for ImageErrors
impl From<DecodeErrors> for ImageErrors
Source§fn from(from: DecodeErrors) -> Self
fn from(from: DecodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<EncodingError> for ImageErrors
impl From<EncodingError> for ImageErrors
Source§fn from(value: EncodingError) -> Self
fn from(value: EncodingError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ImageErrors
impl From<Error> for ImageErrors
Source§impl From<FarbFeldErrors> for ImageErrors
impl From<FarbFeldErrors> for ImageErrors
Source§fn from(value: FarbFeldErrors) -> Self
fn from(value: FarbFeldErrors) -> Self
Converts to this type from the input type.
Source§impl From<HdrDecodeErrors> for ImageErrors
impl From<HdrDecodeErrors> for ImageErrors
Source§fn from(value: HdrDecodeErrors) -> Self
fn from(value: HdrDecodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<ImageOperationsErrors> for ImageErrors
impl From<ImageOperationsErrors> for ImageErrors
Source§fn from(from: ImageOperationsErrors) -> Self
fn from(from: ImageOperationsErrors) -> Self
Converts to this type from the input type.
Source§impl From<ImgEncodeErrors> for ImageErrors
impl From<ImgEncodeErrors> for ImageErrors
Source§fn from(from: ImgEncodeErrors) -> Self
fn from(from: ImgEncodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<PPMDecodeErrors> for ImageErrors
Available on crate feature ppm only.
impl From<PPMDecodeErrors> for ImageErrors
Available on crate feature
ppm only.Source§fn from(from: PPMDecodeErrors) -> Self
fn from(from: PPMDecodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<PSDDecodeErrors> for ImageErrors
impl From<PSDDecodeErrors> for ImageErrors
Source§fn from(error: PSDDecodeErrors) -> Self
fn from(error: PSDDecodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<PngDecodeErrors> for ImageErrors
impl From<PngDecodeErrors> for ImageErrors
Source§fn from(from: PngDecodeErrors) -> Self
fn from(from: PngDecodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<QoiErrors> for ImageErrors
impl From<QoiErrors> for ImageErrors
Source§impl From<String> for ImageErrors
impl From<String> for ImageErrors
Source§fn from(s: String) -> ImageErrors
fn from(s: String) -> ImageErrors
Converts to this type from the input type.
Source§impl From<ZByteIoError> for ImageErrors
impl From<ZByteIoError> for ImageErrors
Source§fn from(value: ZByteIoError) -> Self
fn from(value: ZByteIoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ImageErrors
impl !UnwindSafe for ImageErrors
impl Freeze for ImageErrors
impl Send for ImageErrors
impl Sync for ImageErrors
impl Unpin for ImageErrors
impl UnsafeUnpin for ImageErrors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more