Struct colorutils_rs::Lab
source · pub struct Lab {
pub l: f32,
pub a: f32,
pub b: f32,
}Expand description
Represents CIELAB color space.
Fields§
§l: f32l: lightness component (0 to 100)
a: f32a: green (negative) and red (positive) component.
b: f32b: blue (negative) and yellow (positive) component
Implementations§
Trait Implementations§
source§impl EuclideanDistance for Lab
impl EuclideanDistance for Lab
fn euclidean_distance(&self, other: Lab) -> f32
source§impl PartialOrd for Lab
impl PartialOrd for Lab
source§impl TaxicabDistance for Lab
impl TaxicabDistance for Lab
fn taxicab_distance(&self, other: Self) -> f32
impl Copy for Lab
impl StructuralPartialEq for Lab
Auto Trait Implementations§
impl Freeze for Lab
impl RefUnwindSafe for Lab
impl Send for Lab
impl Sync for Lab
impl Unpin for Lab
impl UnwindSafe for Lab
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)