Struct rin::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> Lab<T, Wp> where
    Wp: WhitePoint
[src]

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

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

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

impl<T, Wp> Lab<T, Wp> where
    T: Float,
    Wp: WhitePoint
[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, Wp> Add<Lab<T, Wp>> for Lab<T, Wp> where
    T: Channel + Float + NumCast,
    Wp: WhitePoint
[src]

type Output = Lab<T, Wp>

The resulting type after applying the + operator.

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

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

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

type Output = Lab<T, Wp>

The resulting type after applying the * operator.

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

type WhitePoint = Wp

impl<T, Wp> Copy for Lab<T, Wp> where
    T: Copy,
    Wp: Copy
[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> Any for T where
    T: Any
[src]

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

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

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

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

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

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> Slottable for T where
    T: Copy
[src]