[−][src]Enum png_pong::decode::Error
Decoding Errors.
Variants
A wrapped I/O error.
ColorType(u8)
Unrecognized color type
BitDepth(u8)
Out of bounds bit depth
Invalid color type / bit depth combination
BackgroundSize(ColorType)
Pixel size in background color doesn't match pixel size in image data
The first 8 bytes are not the correct PNG signature
Adler checksum not correct, data must be corrupted
Inflate(TINFLStatus)
Inflate algorithm failure
ZLib compression includes preset dictionary, which is not allowed according to the PNG specification
Invalid compression method in zlib header
Invalid FCHECK in zlib header
ZLib data is too small
TODO
TODO
TODO
File doesn't contain any chunks.
TextSize(usize)
Text is not between 1-79 characters
The length of the END symbol 256 in the Huffman tree is 0
Unrecognized filter type
Alpha palette is larger than the palette.
Chunk is the wrong size
Mode has an alpha channel, but also an alpha palette (must pick one)
Chunk was expected to end, but didn't
Invalid unit type
Null terminator is missing.
Invalid chunk length for the chunk type
Not a critical error, should be ignored (chunk not recognized).
Input reading appears to end in the middle of a PNG file
Chunks are out of order
IDAT Chunk not found.
Chunk(s) were found after the IEND chunk.
Multiple of a chunk were found when only one of this type is allowed.
CRC32 Checksum failed for a chunk
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,