Struct style::color::convert::ProphotoRgb
source · pub struct ProphotoRgb;
Expand description
The ProPhoto RGB color space. https://drafts.csswg.org/css-color-4/#predefined-prophoto-rgb
Implementations§
source§impl ProphotoRgb
impl ProphotoRgb
const TO_XYZ: Transform3D<f32> = _
const FROM_XYZ: Transform3D<f32> = _
Trait Implementations§
source§impl ColorSpaceConversion for ProphotoRgb
impl ColorSpaceConversion for ProphotoRgb
source§const WHITE_POINT: WhitePoint = WhitePoint::D50
const WHITE_POINT: WhitePoint = WhitePoint::D50
The white point that the implementer is represented in.
source§fn to_linear_light(from: &ColorComponents) -> ColorComponents
fn to_linear_light(from: &ColorComponents) -> ColorComponents
Convert the components from sRGB gamma encoded values to sRGB linear
light values.
source§fn to_xyz(from: &ColorComponents) -> ColorComponents
fn to_xyz(from: &ColorComponents) -> ColorComponents
Convert the components from sRGB linear light values to XYZ coordinate
space.
source§fn from_xyz(from: &ColorComponents) -> ColorComponents
fn from_xyz(from: &ColorComponents) -> ColorComponents
Convert the components from XYZ coordinate space to sRGB linear light
values.
source§fn to_gamma_encoded(from: &ColorComponents) -> ColorComponents
fn to_gamma_encoded(from: &ColorComponents) -> ColorComponents
Convert the components from sRGB linear light values to sRGB gamma
encoded values.
Auto Trait Implementations§
impl Freeze for ProphotoRgb
impl RefUnwindSafe for ProphotoRgb
impl Send for ProphotoRgb
impl Sync for ProphotoRgb
impl Unpin for ProphotoRgb
impl UnwindSafe for ProphotoRgb
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
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>
Converts
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>
Converts
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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert