#[non_exhaustive]pub enum HalftoneErrorKind {
InvalidPatternDictionaryFlags(u8),
InvalidPatternDimensions {
width: u8,
height: u8,
},
InvalidHalftoneFlags(u8),
InvalidConfiguration,
InvalidBitmapDimensions {
expected_width: u32,
expected_height: u32,
actual_width: u32,
actual_height: u32,
},
InvalidGrayBitDepth(u8),
EmptyPatternDictionary,
InconsistentPatternDimensions,
InvalidPatternIndex {
index: u32,
pattern_count: u64,
},
}Expand description
Detailed malformed pattern-dictionary or halftone classification.
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.
InvalidPatternDictionaryFlags(u8)
Pattern dictionary flags are invalid.
InvalidPatternDimensions
Pattern dimensions are zero or otherwise invalid.
InvalidHalftoneFlags(u8)
Halftone flags are invalid.
InvalidConfiguration
MMR/template/skip configuration is invalid.
InvalidBitmapDimensions
A callback returned a bitmap with unexpected dimensions.
Fields
InvalidGrayBitDepth(u8)
Gray bit depth exceeds the supported 32-bit index domain.
EmptyPatternDictionary
A halftone region references no patterns.
InconsistentPatternDimensions
Patterns do not share one fixed size.
InvalidPatternIndex
A decoded gray index does not name a pattern.
Trait Implementations§
Source§impl Clone for HalftoneErrorKind
impl Clone for HalftoneErrorKind
impl Copy for HalftoneErrorKind
Source§impl Debug for HalftoneErrorKind
impl Debug for HalftoneErrorKind
impl Eq for HalftoneErrorKind
Source§impl PartialEq for HalftoneErrorKind
impl PartialEq for HalftoneErrorKind
impl StructuralPartialEq for HalftoneErrorKind
Auto Trait Implementations§
impl Forget for HalftoneErrorKind
impl Freeze for HalftoneErrorKind
impl Move for HalftoneErrorKind
impl RefUnwindSafe for HalftoneErrorKind
impl Send for HalftoneErrorKind
impl Sync for HalftoneErrorKind
impl Unpin for HalftoneErrorKind
impl UnsafeUnpin for HalftoneErrorKind
impl UnwindSafe for HalftoneErrorKind
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