Struct color::Lab[][src]

pub struct Lab<T, Wp> {
    pub l: T,
    pub a: T,
    pub b: T,
    pub white_point: Wp,
}

Fields

l: Ta: Tb: Twhite_point: Wp

Implementations

impl<T, Wp: WhitePoint> Lab<T, Wp>[src]

pub fn new(l: T, a: T, b: T) -> Lab<T, Wp>[src]

impl<T: Copy, Wp: WhitePoint> Lab<T, Wp>[src]

pub fn brightness(&self) -> T[src]

impl<T: Float, Wp: WhitePoint> Lab<T, Wp>[src]

pub fn chromacity(&self) -> T[src]

pub fn hue(&self) -> T[src]

pub fn offset_chromacity(&self, chroma_offset: T) -> Lab<T, Wp>[src]

Trait Implementations

impl<T: Channel + Float + NumCast, Wp: WhitePoint> Add<Lab<T, Wp>> for Lab<T, Wp>[src]

type Output = Lab<T, Wp>

The resulting type after applying the + operator.

impl<T: Clone, Wp: Clone> Clone for Lab<T, Wp>[src]

impl<T: Debug, Wp: Debug> Debug for Lab<T, Wp>[src]

impl<T: Channel + Float + NumCast, Wp: WhitePoint> Mul<T> for Lab<T, Wp>[src]

type Output = Lab<T, Wp>

The resulting type after applying the * operator.

impl<T: Channel + Float + NumCast, Wp: WhitePoint> ToXyz for Lab<T, Wp>[src]

type WhitePoint = Wp

impl<T: Copy, Wp: Copy> Copy for Lab<T, Wp>[src]

Auto Trait Implementations

impl<T, Wp> RefUnwindSafe for Lab<T, Wp> where
    T: RefUnwindSafe,
    Wp: RefUnwindSafe

impl<T, Wp> Send for Lab<T, Wp> where
    T: Send,
    Wp: Send

impl<T, Wp> Sync for Lab<T, Wp> where
    T: Sync,
    Wp: Sync

impl<T, Wp> Unpin for Lab<T, Wp> where
    T: Unpin,
    Wp: Unpin

impl<T, Wp> UnwindSafe for Lab<T, Wp> where
    T: UnwindSafe,
    Wp: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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

type Owned = T

The resulting type after obtaining ownership.

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.