Struct color::Xyz[][src]

pub struct Xyz<T = f32, Wp = D65> where
    T: Channel + Float
{ pub x: T, pub y: T, pub z: T, pub white_point: Wp, }

Fields

x: Ty: Tz: Twhite_point: Wp

Implementations

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

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

Trait Implementations

impl<T: Clone, Wp: Clone> Clone for Xyz<T, Wp> where
    T: Channel + Float
[src]

impl<T: Debug, Wp: Debug> Debug for Xyz<T, Wp> where
    T: Channel + Float
[src]

impl<T: Channel + Float, W> From<Xyz<T, W>> for Vec3<T>[src]

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

type WhitePoint = Wp

impl<T: Channel + Float + Clone> ToRgb for Xyz<T, D65>[src]

type Standard = Srgb

impl<T: Channel + Float, Wp: WhitePoint> ToYxy for Xyz<T, Wp>[src]

type WhitePoint = Wp

impl<T: Copy, Wp: Copy> Copy for Xyz<T, Wp> where
    T: Channel + Float
[src]

Auto Trait Implementations

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

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

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

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

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