Enum pb_imgsize::DecodingError
source · 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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<DecodingError> for DecodingError
impl PartialEq<DecodingError> for DecodingError
source§fn eq(&self, other: &DecodingError) -> bool
fn eq(&self, other: &DecodingError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DecodingError
impl StructuralEq for DecodingError
impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
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