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>
Auto Trait Implementations
impl Freeze for UsageError
impl RefUnwindSafe for UsageError
impl Send for UsageError
impl Sync for UsageError
impl Unpin for UsageError
impl UnsafeUnpin for UsageError
impl UnwindSafe for UsageError
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for UsageError
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for UsageError
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for UsageError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for UsageError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for UsageError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for UsageError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for UsageError
where
T: ?Sized,
impl<T> ToString for UsageError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for UsageError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for UsageError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for UsageError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>