[][src]Struct deltae::LabValue

pub struct LabValue {
    pub l: f32,
    pub a: f32,
    pub b: f32,
}

CIEL*a*b*

ValueColorRange
L*Light <---> Dark0 <---> 100
a*Green <---> Magenta-128 <---> 128
b*Blue <---> Yellow-128 <---> 128

Fields

l: f32

Lightness

a: f32

Green - Magenta

b: f32

Blue - Yellow

Methods

impl LabValue[src]

pub fn new(l: f32, a: f32, b: f32) -> Result<LabValue, ValueError>[src]

Returns a result of a LabValue from 3 f32s. Will return Err() if the values are out of range

Trait Implementations

impl Round for LabValue[src]

impl Validate for LabValue[src]

impl From<LchValue> for LabValue[src]

impl<'_> From<&'_ LchValue> for LabValue[src]

impl<'_> From<&'_ LabValue> for LabValue[src]

impl From<XyzValue> for LabValue[src]

impl<'_> From<&'_ XyzValue> for LabValue[src]

impl From<LabValue> for LchValue[src]

impl<'_> From<&'_ LabValue> for LchValue[src]

impl From<LabValue> for XyzValue[src]

impl<'_> From<&'_ LabValue> for XyzValue[src]

impl Default for LabValue[src]

impl Clone for LabValue[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Delta + Copy> PartialEq<T> for LabValue where
    LabValue: From<T>, 
[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Copy for LabValue[src]

impl Display for LabValue[src]

impl Debug for LabValue[src]

impl FromStr for LabValue[src]

type Err = ValueError

The associated error which can be returned from parsing.

impl<'_> TryFrom<&'_ [f32; 3]> for LabValue[src]

type Error = ValueError

The type returned in the event of a conversion error.

impl TryFrom<(f32, f32, f32)> for LabValue[src]

type Error = ValueError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ (f32, f32, f32)> for LabValue[src]

type Error = ValueError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for LabValue

impl Unpin for LabValue

impl Sync for LabValue

impl UnwindSafe for LabValue

impl RefUnwindSafe for LabValue

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]