#[non_exhaustive]pub enum DirectPlanUnsupportedReason {
GrayscaleImageWithoutAlpha,
GrayscaleSingleTileCodestream,
GrayscaleSingleComponentCodestream,
ColorRgbImageWithoutAlpha,
ColorSingleTileCodestream,
ColorThreeComponentRgbCodestream,
ComponentIndexOutOfRange,
ComponentUnitSampled,
ComponentDecompositionIndexOutOfRange,
}Expand description
Structured reasons why a direct JPEG 2000 device plan cannot be built.
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.
GrayscaleImageWithoutAlpha
Grayscale direct plans require grayscale images without alpha.
GrayscaleSingleTileCodestream
Grayscale direct plans require a single-tile codestream.
GrayscaleSingleComponentCodestream
Grayscale direct plans require a single-component codestream.
ColorRgbImageWithoutAlpha
Color direct plans require RGB images without alpha.
ColorSingleTileCodestream
Color direct plans require a single-tile codestream.
ColorThreeComponentRgbCodestream
Color direct plans require three RGB components.
ComponentIndexOutOfRange
A direct component plan index did not exist.
ComponentUnitSampled
Direct component plans require unit-sampled components.
ComponentDecompositionIndexOutOfRange
A direct component decomposition index did not exist.
Trait Implementations§
Source§impl Clone for DirectPlanUnsupportedReason
impl Clone for DirectPlanUnsupportedReason
Source§fn clone(&self) -> DirectPlanUnsupportedReason
fn clone(&self) -> DirectPlanUnsupportedReason
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 DirectPlanUnsupportedReason
Source§impl Debug for DirectPlanUnsupportedReason
impl Debug for DirectPlanUnsupportedReason
impl Eq for DirectPlanUnsupportedReason
Source§impl Error for DirectPlanUnsupportedReason
impl Error for DirectPlanUnsupportedReason
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()
impl StructuralPartialEq for DirectPlanUnsupportedReason
Auto Trait Implementations§
impl Freeze for DirectPlanUnsupportedReason
impl RefUnwindSafe for DirectPlanUnsupportedReason
impl Send for DirectPlanUnsupportedReason
impl Sync for DirectPlanUnsupportedReason
impl Unpin for DirectPlanUnsupportedReason
impl UnsafeUnpin for DirectPlanUnsupportedReason
impl UnwindSafe for DirectPlanUnsupportedReason
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