pub enum DecodingError {
UnknownMagic(u32),
Jpeg(JpegDecodingError),
Png(PngDecodingError),
TooShort(usize),
}
Expand description
An error that occurred while decoding an image.
Variants§
Trait Implementations§
Source§impl Clone for DecodingError
impl Clone for DecodingError
Source§fn clone(&self) -> DecodingError
fn clone(&self) -> DecodingError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DecodingError
impl Debug for DecodingError
Source§impl Display for DecodingError
impl Display for DecodingError
Source§impl From<DecodingError> for Error
impl From<DecodingError> for Error
Source§fn from(e: DecodingError) -> Self
fn from(e: DecodingError) -> Self
Converts to this type from the input type.
Source§impl From<JpegDecodingError> for DecodingError
impl From<JpegDecodingError> for DecodingError
Source§fn from(e: JpegDecodingError) -> Self
fn from(e: JpegDecodingError) -> Self
Converts to this type from the input type.
Source§impl From<PngDecodingError> for DecodingError
impl From<PngDecodingError> for DecodingError
Source§fn from(e: PngDecodingError) -> Self
fn from(e: PngDecodingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DecodingError
impl PartialEq for DecodingError
impl Eq for DecodingError
impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
impl Freeze for DecodingError
impl RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnwindSafe for DecodingError
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