pub struct Luma<P: Primaries, TF: TransferFunction>(/* private fields */);Expand description
Luma derived from an RGB space with primaries P and transfer function TF.
Luma Y’ is the weighted sum of gamma-encoded RGB channels. The weights are the Y row of the primaries’ RGB-to-XYZ matrix, so they vary by primary set.
Trait Implementations§
impl<P: Primaries, TF: TransferFunction> BackingStore<f32> for Luma<P, TF>
impl<P: Copy + Primaries, TF: Copy + TransferFunction> Copy for Luma<P, TF>
impl<P: Eq + Primaries, TF: Eq + TransferFunction> Eq for Luma<P, TF>
impl<P: Primaries, TF: TransferFunction> StructuralPartialEq for Luma<P, TF>
Auto Trait Implementations§
impl<P, TF> Freeze for Luma<P, TF>
impl<P, TF> RefUnwindSafe for Luma<P, TF>where
P: RefUnwindSafe,
TF: RefUnwindSafe,
impl<P, TF> Send for Luma<P, TF>
impl<P, TF> Sync for Luma<P, TF>
impl<P, TF> Unpin for Luma<P, TF>
impl<P, TF> UnsafeUnpin for Luma<P, TF>
impl<P, TF> UnwindSafe for Luma<P, TF>where
P: UnwindSafe,
TF: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more