Struct color::Yxy[][src]

pub struct Yxy<T = f32, Wp = D65> {
    pub x: T,
    pub y: T,
    pub luma: T,
    pub white_point: Wp,
}

Fields

x: Ty: Tluma: Twhite_point: Wp

Implementations

impl<T: Channel + Float, Wp: WhitePoint> Yxy<T, Wp>[src]

pub fn new(x: T, y: T, luma: T) -> Yxy<T, Wp>[src]

Trait Implementations

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

type Output = Yxy<T, Wp>

The resulting type after applying the + operator.

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

type WhitePoint = Wp

Auto Trait Implementations

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

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

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

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

impl<T, Wp> UnwindSafe for Yxy<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, 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.