Struct DecodingError
pub struct DecodingError { /* private fields */ }
An error was encountered while decoding an image.
This is used as an opaque representation for the ImageError::Decoding variant. See its
documentation for more information.
Implementations
impl DecodingError
fn new(format: ImageFormatHint, err: impl Into<Box<dyn Error + Send + Sync>>) -> SelfCreate a
DecodingErrorthat stems from an arbitrary error of an underlying decoder.fn from_format_hint(format: ImageFormatHint) -> SelfCreate a
DecodingErrorfor an image format.The error will not contain any further information but is very easy to create.
fn format_hint(&self) -> ImageFormatHintReturns the image format associated with this error.
Trait Implementations
impl Debug for DecodingError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for DecodingError
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>
impl Error for DecodingError
fn source(&self) -> Option<&dyn Error + 'static>