#[non_exhaustive]pub enum IccValidationError {
TooShort,
MissingSignature,
InvalidDeclaredSize,
UnsupportedProfileClass,
TagTableOutOfBounds,
TagSpanOutOfBounds,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Structural validation error for raw ICC profile bytes (ISO 15076-1 / ICC.1).
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.
TooShort
Profile is shorter than the 132-byte minimum (128-byte header + 4-byte tag count).
MissingSignature
Header bytes 36..40 do not contain the 'acsp' magic signature.
InvalidDeclaredSize
Header bytes 0..4 declared size is < 132 or exceeds the slice length.
UnsupportedProfileClass
Header bytes 12..16 profile class is not an image color-space class (mntr, scnr, prtr, spac).
TagTableOutOfBounds
Tag table extends past the declared profile size or overflows.
TagSpanOutOfBounds
A tag entry’s (offset, size) overlaps the header/tag-table or extends past the declared profile size.
Trait Implementations§
Source§impl Clone for IccValidationError
impl Clone for IccValidationError
Source§fn clone(&self) -> IccValidationError
fn clone(&self) -> IccValidationError
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 IccValidationError
Source§impl Debug for IccValidationError
impl Debug for IccValidationError
Source§impl Display for IccValidationError
impl Display for IccValidationError
impl Eq for IccValidationError
Source§impl Error for IccValidationError
impl Error for IccValidationError
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 PartialEq for IccValidationError
impl PartialEq for IccValidationError
impl StructuralPartialEq for IccValidationError
Auto Trait Implementations§
impl Freeze for IccValidationError
impl RefUnwindSafe for IccValidationError
impl Send for IccValidationError
impl Sync for IccValidationError
impl Unpin for IccValidationError
impl UnsafeUnpin for IccValidationError
impl UnwindSafe for IccValidationError
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