#[non_exhaustive]pub enum IdentificationUse {
MetadataOnly,
MatrixTrcSubstitution,
}Expand description
What operations an IccIdentification supports.
Always check this before deciding whether to skip a CMS — a profile can be recognized (primaries/transfer known) without being safe for fast-path substitution.
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.
MetadataOnly
Primaries and transfer are known, but the profile’s structure may require a full CMS for accurate conversion (e.g., LUT-based profiles, non-Bradford chromatic adaptation, Lab PCS). Use for metadata, format negotiation, and display — not for pixel math.
MatrixTrcSubstitution
Matrix+TRC substitution produces output equivalent to a full CMS within the tolerance used for identification. Safe to use for pixel conversion without a CMS backend.
Trait Implementations§
Source§impl Clone for IdentificationUse
impl Clone for IdentificationUse
Source§fn clone(&self) -> IdentificationUse
fn clone(&self) -> IdentificationUse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdentificationUse
impl Debug for IdentificationUse
Source§impl Hash for IdentificationUse
impl Hash for IdentificationUse
Source§impl PartialEq for IdentificationUse
impl PartialEq for IdentificationUse
impl Copy for IdentificationUse
impl Eq for IdentificationUse
impl StructuralPartialEq for IdentificationUse
Auto Trait Implementations§
impl Freeze for IdentificationUse
impl RefUnwindSafe for IdentificationUse
impl Send for IdentificationUse
impl Sync for IdentificationUse
impl Unpin for IdentificationUse
impl UnsafeUnpin for IdentificationUse
impl UnwindSafe for IdentificationUse
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