pub struct Oklab;Expand description
The Oklab color space. https://drafts.csswg.org/css-color-4/#specifying-oklab-oklch
Implementations§
Source§impl Oklab
 
impl Oklab
const XYZ_TO_LMS: Transform3D<f32>
const LMS_TO_OKLAB: Transform3D<f32>
const LMS_TO_XYZ: Transform3D<f32>
const OKLAB_TO_LMS: Transform3D<f32>
Trait Implementations§
Source§impl ColorSpaceConversion for Oklab
 
impl ColorSpaceConversion for Oklab
Source§const WHITE_POINT: WhitePoint = WhitePoint::D65
 
const WHITE_POINT: WhitePoint = WhitePoint::D65
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 Oklab
impl RefUnwindSafe for Oklab
impl Send for Oklab
impl Sync for Oklab
impl Unpin for Oklab
impl UnwindSafe for Oklab
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