#[non_exhaustive]pub enum CmsChoice {
Inherit,
StrictNoIcc,
Use(CmsBinding),
}Expand description
Explicit color-management provider selection for a conversion or pipeline run.
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.
Inherit
Inherit the parent or host default CMS binding when resolved at run binding.
StrictNoIcc
Forbid both ICC CMS evaluation and inferred matrix+TRC ICC substitution.
Validated ICC profile carriage (pass-through when source and destination carry equivalent profiles) and pure known-space math remain permitted.
Use(CmsBinding)
Use this exact named CmsBinding for arbitrary ICC and CMYK conversions.
Implementations§
Source§impl CmsChoice
impl CmsChoice
Sourcepub const fn is_frozen(&self) -> bool
pub const fn is_frozen(&self) -> bool
Returns true when this choice is concrete (StrictNoIcc or Use), not Inherit.
Sourcepub fn binding(&self) -> Option<&CmsBinding>
pub fn binding(&self) -> Option<&CmsBinding>
Borrow the bound CmsBinding if self is CmsChoice::Use.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CmsChoice
impl !UnwindSafe for CmsChoice
impl Freeze for CmsChoice
impl Send for CmsChoice
impl Sync for CmsChoice
impl Unpin for CmsChoice
impl UnsafeUnpin for CmsChoice
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