#[repr(C)]pub struct Oklab {
pub l: f32,
pub a: f32,
pub b: f32,
}
Expand description
Struct that represent Oklab colorspace
Fields§
§l: f32
All values in Oklab intended to be normalized [0; 1]
a: f32
A value range [-0.5; 0.5]
b: f32
B value range [-0.5; 0.5]
Implementations§
Trait Implementations§
Source§impl AddAssign<f32> for Oklab
impl AddAssign<f32> for Oklab
Source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the
+=
operation. Read moreSource§impl AddAssign for Oklab
impl AddAssign for Oklab
Source§fn add_assign(&mut self, rhs: Oklab)
fn add_assign(&mut self, rhs: Oklab)
Performs the
+=
operation. Read moreSource§impl DivAssign<f32> for Oklab
impl DivAssign<f32> for Oklab
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moreSource§impl DivAssign for Oklab
impl DivAssign for Oklab
Source§fn div_assign(&mut self, rhs: Oklab)
fn div_assign(&mut self, rhs: Oklab)
Performs the
/=
operation. Read moreSource§impl MulAssign<f32> for Oklab
impl MulAssign<f32> for Oklab
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moreSource§impl MulAssign for Oklab
impl MulAssign for Oklab
Source§fn mul_assign(&mut self, rhs: Oklab)
fn mul_assign(&mut self, rhs: Oklab)
Performs the
*=
operation. Read moreSource§impl PartialOrd for Oklab
impl PartialOrd for Oklab
Source§impl SubAssign<f32> for Oklab
impl SubAssign<f32> for Oklab
Source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the
-=
operation. Read moreSource§impl SubAssign for Oklab
impl SubAssign for Oklab
Source§fn sub_assign(&mut self, rhs: Oklab)
fn sub_assign(&mut self, rhs: Oklab)
Performs the
-=
operation. Read moreimpl Copy for Oklab
impl StructuralPartialEq for Oklab
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