Struct rin::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: T
y: T
z: T
white_point: Wp
Implementations
impl<T, Wp> Xyz<T, Wp> where
T: Channel + Float,
Wp: WhitePoint,
[src]
impl<T, Wp> Xyz<T, Wp> where
T: Channel + Float,
Wp: WhitePoint,
[src]Trait Implementations
impl<T, Wp> ToLab for Xyz<T, Wp> where
T: Channel + Float + NumCast,
Wp: WhitePoint,
[src]
impl<T, Wp> ToLab for Xyz<T, Wp> where
T: Channel + Float + NumCast,
Wp: WhitePoint,
[src]type WhitePoint = Wp
pub fn to_lab<U>(&self) -> Lab<U, Wp> where
U: Channel,
[src]
U: Channel,
impl<T, Wp> Copy for Xyz<T, Wp> where
T: Copy + Channel + Float,
Wp: Copy,
[src]
T: Copy + Channel + Float,
Wp: Copy,
Auto Trait Implementations
impl<T, Wp> RefUnwindSafe for Xyz<T, Wp> where
T: RefUnwindSafe,
Wp: RefUnwindSafe,
T: RefUnwindSafe,
Wp: RefUnwindSafe,
impl<T, Wp> Send for Xyz<T, Wp> where
T: Send,
Wp: Send,
T: Send,
Wp: Send,
impl<T, Wp> Sync for Xyz<T, Wp> where
T: Sync,
Wp: Sync,
T: Sync,
Wp: Sync,
impl<T, Wp> Unpin for Xyz<T, Wp> where
T: Unpin,
Wp: Unpin,
T: Unpin,
Wp: Unpin,
impl<T, Wp> UnwindSafe for Xyz<T, Wp> where
T: UnwindSafe,
Wp: UnwindSafe,
T: UnwindSafe,
Wp: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,