#[non_exhaustive]pub enum MmrErrorKind {
InvalidMode {
bit_offset: usize,
},
ExtensionMode {
bit_offset: usize,
},
InvalidRunCode {
bit_offset: usize,
black: bool,
},
RunExceedsRow,
InvalidTransition,
NonProgress,
TooManyModes,
MissingEofb,
InvalidEofb,
TrailingData,
NonZeroPadding,
}Expand description
Detailed malformed MMR stream 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.
InvalidMode
No two-dimensional mode matches the coded prefix.
ExtensionMode
T.6 extension modes are forbidden by JBIG2.
InvalidRunCode
No run code matches the selected colour and prefix.
RunExceedsRow
A run exceeds the remaining row width.
InvalidTransition
A pass or vertical transition is out of bounds or moves backward.
NonProgress
A mode fails to make semantic progress.
TooManyModes
A row uses more modes than its dimension-derived bound.
MissingEofb
A required EOFB marker is absent.
InvalidEofb
EOFB bits do not match the normative marker.
TrailingData
More than byte-alignment padding remains.
NonZeroPadding
Final byte-alignment padding contains a one bit.
Trait Implementations§
Source§impl Clone for MmrErrorKind
impl Clone for MmrErrorKind
impl Copy for MmrErrorKind
Source§impl Debug for MmrErrorKind
impl Debug for MmrErrorKind
impl Eq for MmrErrorKind
Source§impl PartialEq for MmrErrorKind
impl PartialEq for MmrErrorKind
impl StructuralPartialEq for MmrErrorKind
Auto Trait Implementations§
impl Freeze for MmrErrorKind
impl RefUnwindSafe for MmrErrorKind
impl Send for MmrErrorKind
impl Sync for MmrErrorKind
impl Unpin for MmrErrorKind
impl UnsafeUnpin for MmrErrorKind
impl UnwindSafe for MmrErrorKind
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