pub enum Decoded {
Nothing,
Header(u32, u32, BitDepth, ColorType, bool),
ChunkBegin(u32, ChunkType),
ChunkComplete(u32, ChunkType),
PixelDimensions(PixelDimensions),
AnimationControl(AnimationControl),
FrameControl(FrameControl),
ImageData,
ImageDataFlushed,
PartialChunk(ChunkType),
ImageEnd,
}
Expand description
Result of the decoding process
Variants§
Nothing
Nothing decoded yet
Header(u32, u32, BitDepth, ColorType, bool)
ChunkBegin(u32, ChunkType)
ChunkComplete(u32, ChunkType)
PixelDimensions(PixelDimensions)
AnimationControl(AnimationControl)
FrameControl(FrameControl)
ImageData
Decoded raw image data.
ImageDataFlushed
The last of a consecutive chunk of IDAT was done. This is distinct from ChunkComplete which only marks that some IDAT chunk was completed but not that no additional IDAT chunk follows.
PartialChunk(ChunkType)
ImageEnd
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Decoded
impl Send for Decoded
impl Sync for Decoded
impl Unpin for Decoded
impl UnwindSafe for Decoded
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