pub enum Decoded {
    Nothing,
    Header(u32u32BitDepthColorTypebool),
    ChunkBegin(u32ChunkType),
    ChunkComplete(u32ChunkType),
    PixelDimensions(PixelDimensions),
    AnimationControl(AnimationControl),
    FrameControl(FrameControl),
    ImageData,
    ImageDataFlushed,
    PartialChunk(ChunkType),
    ImageEnd,
}
Expand description

Result of the decoding process

Variants

Nothing

Nothing decoded yet

Header(u32u32BitDepthColorTypebool)

ChunkBegin(u32ChunkType)

ChunkComplete(u32ChunkType)

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.