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>
Auto Trait Implementations
impl !RefUnwindSafe for DecodingError
impl !UnwindSafe for DecodingError
impl Freeze for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnsafeUnpin for DecodingError
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DecodingError
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DecodingError
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for DecodingError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DecodingError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DecodingError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for DecodingError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for DecodingError
impl<T> Pointable for DecodingError
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for DecodingError
where
T: ?Sized,
impl<T> ToString for DecodingError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for DecodingError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DecodingError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for DecodingError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>