color

Struct Yxy

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

Fields§

§x: T§y: T§luma: T§white_point: Wp

Implementations§

Source§

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

Source

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

Trait Implementations§

Source§

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

Source§

type Output = Yxy<T, Wp>

The resulting type after applying the + operator.
Source§

fn add(self, other: Yxy<T, Wp>) -> Self::Output

Performs the + operation. Read more
Source§

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

Source§

type WhitePoint = Wp

Source§

fn to_xyz<U: Channel + Float>(&self) -> Xyz<U, Wp>

Auto Trait Implementations§

§

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

§

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

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.