Struct rin::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, Wp> Yxy<T, Wp> where
    T: Channel + Float,
    Wp: WhitePoint
[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, Wp> ToXyz for Yxy<T, Wp> where
    T: Channel + Float,
    Wp: WhitePoint
[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> 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, 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]