pub enum ImageCodecError {
TruncatedData,
InvalidSignature,
Unsupported,
CorruptData,
ChecksumMismatch,
InvalidDimensions,
DecompressionError,
InvalidHuffmanTable,
InvalidQuantTable,
}Expand description
Errors produced by the image decoders.
Variants§
TruncatedData
Data is too short or truncated.
InvalidSignature
Magic bytes / signature mismatch.
Unsupported
Unsupported feature or variant.
CorruptData
Corrupted or invalid data encountered during decoding.
ChecksumMismatch
Checksum (CRC, Adler-32, etc.) verification failed.
InvalidDimensions
Image dimensions are zero or exceed limits.
DecompressionError
Decompression failed (DEFLATE, LZW).
InvalidHuffmanTable
Huffman table construction failed.
InvalidQuantTable
Quantization table error.
Trait Implementations§
Source§impl Clone for ImageCodecError
impl Clone for ImageCodecError
Source§fn clone(&self) -> ImageCodecError
fn clone(&self) -> ImageCodecError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageCodecError
impl Debug for ImageCodecError
Source§impl PartialEq for ImageCodecError
impl PartialEq for ImageCodecError
impl Copy for ImageCodecError
impl Eq for ImageCodecError
impl StructuralPartialEq for ImageCodecError
Auto Trait Implementations§
impl Freeze for ImageCodecError
impl RefUnwindSafe for ImageCodecError
impl Send for ImageCodecError
impl Sync for ImageCodecError
impl Unpin for ImageCodecError
impl UnwindSafe for ImageCodecError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)