Enum pb_imgsize::PngDecodingError
source · pub enum PngDecodingError {
MissingIHDR,
InvalidIHDRLength(u32),
InvalidChunkCrc,
}
Expand description
An error that occurred while decoding a PNG image.
Variants§
Trait Implementations§
source§impl Clone for PngDecodingError
impl Clone for PngDecodingError
source§fn clone(&self) -> PngDecodingError
fn clone(&self) -> PngDecodingError
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 PngDecodingError
impl Debug for PngDecodingError
source§impl Display for PngDecodingError
impl Display for PngDecodingError
source§impl Error for PngDecodingError
impl Error for PngDecodingError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<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<PngDecodingError> for PngDecodingError
impl PartialEq<PngDecodingError> for PngDecodingError
source§fn eq(&self, other: &PngDecodingError) -> bool
fn eq(&self, other: &PngDecodingError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PngDecodingError
impl StructuralEq for PngDecodingError
impl StructuralPartialEq for PngDecodingError
Auto Trait Implementations§
impl RefUnwindSafe for PngDecodingError
impl Send for PngDecodingError
impl Sync for PngDecodingError
impl Unpin for PngDecodingError
impl UnwindSafe for PngDecodingError
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