#[non_exhaustive]pub enum DirectPlanUnsupportedReason {
GrayscaleImageWithoutAlpha,
GrayscaleSingleTileCodestream,
GrayscaleSingleComponentCodestream,
ColorRgbImageWithoutAlpha,
ColorSingleTileCodestream,
ColorThreeComponentRgbCodestream,
RgbaRgbImageWithAlpha,
RgbaFourComponentRgbCodestream,
ComponentIndexOutOfRange,
ComponentUnitSampled,
ComponentDecompositionIndexOutOfRange,
MixedCodeBlockCoding,
}Expand description
Structured reasons why a direct JPEG 2000 device plan cannot be built.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
RgbaRgbImageWithAlpha
RGBA direct plans require an RGB image with explicit alpha.
RgbaFourComponentRgbCodestream
RGBA direct plans require four components in semantic R, G, B, A order.
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.
MixedCodeBlockCoding
Direct device plans do not yet represent classic and HT code-blocks in one sub-band.
Trait Implementations§
Source§impl Clone for DirectPlanUnsupportedReason
impl Clone for DirectPlanUnsupportedReason
Source§fn clone(&self) -> DirectPlanUnsupportedReason
fn clone(&self) -> DirectPlanUnsupportedReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
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> ⓘ
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> ⓘ
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