#[non_exhaustive]pub enum ColorProfileSource<'a> {
Icc(&'a [u8]),
Cicp(Cicp),
Named(NamedProfile),
}Expand description
A source color profile — either ICC bytes or CICP parameters.
This unified type lets consumers pass decoded image color info directly to a CMS backend without caring whether the source had an ICC profile, CICP codes, or a well-known named profile.
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.
Icc(&'a [u8])
Raw ICC profile data.
Cicp(Cicp)
CICP parameters (a CMS can synthesize an equivalent profile).
Named(NamedProfile)
Well-known named profile.
Trait Implementations§
Source§impl<'a> Clone for ColorProfileSource<'a>
impl<'a> Clone for ColorProfileSource<'a>
Source§fn clone(&self) -> ColorProfileSource<'a>
fn clone(&self) -> ColorProfileSource<'a>
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<'a> Debug for ColorProfileSource<'a>
impl<'a> Debug for ColorProfileSource<'a>
Source§impl<'a> PartialEq for ColorProfileSource<'a>
impl<'a> PartialEq for ColorProfileSource<'a>
impl<'a> Eq for ColorProfileSource<'a>
impl<'a> StructuralPartialEq for ColorProfileSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for ColorProfileSource<'a>
impl<'a> RefUnwindSafe for ColorProfileSource<'a>
impl<'a> Send for ColorProfileSource<'a>
impl<'a> Sync for ColorProfileSource<'a>
impl<'a> Unpin for ColorProfileSource<'a>
impl<'a> UnsafeUnpin for ColorProfileSource<'a>
impl<'a> UnwindSafe for ColorProfileSource<'a>
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