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
Trait Implementations
sourceimpl<T: Channel + Float + NumCast, Wp: WhitePoint> ToLab for Xyz<T, Wp>
impl<T: Channel + Float + NumCast, Wp: WhitePoint> ToLab for Xyz<T, Wp>
type WhitePoint = Wp
fn to_lab<U: Channel>(&self) -> Lab<U, Wp>
impl<T: Copy, Wp: Copy> Copy for Xyz<T, Wp> where
T: Channel + Float,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more