Enum UsageError
#[non_exhaustive]
pub enum UsageError
User attempted to use the Decoder in a way that is incompatible with a specific image.
For example: attempting to read a tile from a stripped image.
Variants
-
InvalidChunkType(ChunkType, ChunkType) -
InvalidChunkIndex(u32) -
InvalidPlaneIndex(u16) -
InvalidCodingUnit(u32, u32) -
PredictorCompressionMismatch -
PredictorIncompatible -
InsufficientOutputBufferSize { needed: usize, provided: usize } -
InsufficientOutputRowStride { needed: usize, requested: usize } -
ZeroIfdPointer -
ReconfiguredAfterImageWrite -
ByteOrderMismatch -
MismatchedEntryLength { ty: Type, found: usize }
Trait Implementations
impl Debug for UsageError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for UsageError
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
impl Error for UsageError
fn source(&self) -> Option<&dyn Error + 'static>