pub enum Builtin {
Srgb,
DisplayP3,
AdobeRgbCompat,
ProPhotoCompat,
LinearSrgb,
AcesCg,
Rec2020,
GrayGamma22,
SGray,
DotGain20Compat,
LabD50,
CoatedCmyk,
}Expand description
Identifiers of the built-in profiles.
Variants§
Srgb
sRGB IEC 61966-2.1 (Rec. 709 primaries, D65, sRGB transfer function).
DisplayP3
Display P3 (DCI-P3 primaries, D65, sRGB transfer function).
AdobeRgbCompat
Adobe RGB (1998)-compatible: its published primaries, D65, gamma 563/256.
ProPhotoCompat
ProPhoto-compatible: ROMM RGB primaries, D50, gamma 1.8.
LinearSrgb
sRGB primaries with a linear transfer function.
AcesCg
ACEScg: AP1 primaries, the ACES white point (~D60), linear transfer. The ACES working space for CG renders.
Rec2020
Rec. 2020 primaries, D65, Rec. 709 transfer function.
GrayGamma22
Gray, gamma 2.2.
SGray
Gray with the sRGB transfer function (sGray): gray v looks like RGB (v, v, v) in sRGB.
DotGain20Compat
Gray matching Photoshop’s default working gray (Dot Gain 20 %) with our own curve: a pure gamma of 1.732, fitted on Photoshop 27.11’s RGB → Grayscale (sRGB 64 / 128 / 192 and pure red become 46 / 105 / 177 / 107, all within 1 level). Not Adobe’s profile.
LabD50
CIE Lab* D50 identity (device Lab = PCS Lab, ICC v4 encoding).
CoatedCmyk
Synthetic coated-offset CMYK (300 % total ink, medium GCR); see crate::synth.
Implementations§
Trait Implementations§
impl Copy for Builtin
impl Eq for Builtin
impl StructuralPartialEq for Builtin
Auto Trait Implementations§
impl Forget for Builtin
impl Freeze for Builtin
impl Move for Builtin
impl RefUnwindSafe for Builtin
impl Send for Builtin
impl Sync for Builtin
impl Unpin for Builtin
impl UnsafeUnpin for Builtin
impl UnwindSafe for Builtin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more