#[non_exhaustive]pub enum NamedProfile {
Srgb,
DisplayP3,
Bt2020,
Bt2020Pq,
Bt2020Hlg,
AdobeRgb,
LinearSrgb,
}Expand description
Well-known color profiles that any CMS should recognize.
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.
Srgb
sRGB (IEC 61966-2-1). The web and desktop default.
DisplayP3
Display P3 with sRGB transfer curve.
Bt2020
BT.2020 with BT.709 transfer (SDR wide gamut).
Bt2020Pq
BT.2020 with PQ transfer (HDR10, SMPTE ST 2084).
Bt2020Hlg
BT.2020 with HLG transfer (ARIB STD-B67, HDR broadcast).
AdobeRgb
Adobe RGB (1998). Used in print workflows.
LinearSrgb
Linear sRGB (sRGB primaries, gamma 1.0).
Implementations§
Source§impl NamedProfile
impl NamedProfile
Sourcepub const fn from_cicp(cicp: Cicp) -> Option<NamedProfile>
pub const fn from_cicp(cicp: Cicp) -> Option<NamedProfile>
Map CICP parameters to a well-known named profile.
Recognizes sRGB, Display P3, BT.2020 (SDR), BT.2100 PQ, BT.2100 HLG,
and Linear sRGB. Returns None for unrecognized combinations.
Trait Implementations§
Source§impl Clone for NamedProfile
impl Clone for NamedProfile
Source§fn clone(&self) -> NamedProfile
fn clone(&self) -> NamedProfile
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 NamedProfile
impl Debug for NamedProfile
Source§impl Default for NamedProfile
impl Default for NamedProfile
Source§fn default() -> NamedProfile
fn default() -> NamedProfile
Returns the “default value” for a type. Read more
Source§impl Hash for NamedProfile
impl Hash for NamedProfile
Source§impl PartialEq for NamedProfile
impl PartialEq for NamedProfile
impl Copy for NamedProfile
impl Eq for NamedProfile
impl StructuralPartialEq for NamedProfile
Auto Trait Implementations§
impl Freeze for NamedProfile
impl RefUnwindSafe for NamedProfile
impl Send for NamedProfile
impl Sync for NamedProfile
impl Unpin for NamedProfile
impl UnsafeUnpin for NamedProfile
impl UnwindSafe for NamedProfile
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