#[non_exhaustive]pub enum DecodingError {
CodeBlockDecodeFailure,
UnsupportedFeature(&'static str),
TooManyBitplanes,
TooManyCodingPasses,
InvalidBitplaneCount,
InvalidPrecinct,
InvalidProgressionIterator,
UnexpectedEof,
OutputBufferTooSmall,
}Expand description
Errors related to decoding operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CodeBlockDecodeFailure
An error occurred while decoding a code-block.
UnsupportedFeature(&'static str)
The codestream uses a feature that this decoder does not implement yet.
TooManyBitplanes
Number of bitplanes in a code-block is too large.
TooManyCodingPasses
A code-block contains too many coding passes.
InvalidBitplaneCount
Invalid number of bitplanes in a code-block.
InvalidPrecinct
A precinct was invalid.
InvalidProgressionIterator
A progression iterator ver invalid.
UnexpectedEof
Unexpected end of data.
OutputBufferTooSmall
Caller-provided output buffer is too small for the decoded image.
Trait Implementations§
Source§impl Clone for DecodingError
impl Clone for DecodingError
Source§fn clone(&self) -> DecodingError
fn clone(&self) -> DecodingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecodingError
Source§impl Debug for DecodingError
impl Debug for DecodingError
Source§impl Display for DecodingError
impl Display for DecodingError
impl Eq for DecodingError
Source§impl Error for DecodingError
impl Error for DecodingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DecodingError> for DecodeError
impl From<DecodingError> for DecodeError
Source§fn from(e: DecodingError) -> DecodeError
fn from(e: DecodingError) -> DecodeError
Converts to this type from the input type.
Source§impl PartialEq for DecodingError
impl PartialEq for DecodingError
Source§fn eq(&self, other: &DecodingError) -> bool
fn eq(&self, other: &DecodingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
impl Freeze for DecodingError
impl RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnsafeUnpin for DecodingError
impl UnwindSafe for DecodingError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more