pub struct LCh<W: Illuminant = D65, const OFFSET: usize = 0>(/* private fields */);Expand description
CIE LCh*, the polar form of CIELab.
L* is lightness, C* is chroma, h is hue angle in radians [0, 2pi).
OFFSET is the storage index of the first color channel. 0 (default)
places color channels at [0, 1, 2] with alpha at 3. 1 places color
channels at [1, 2, 3] with alpha at 0, matching alpha-first texture layouts.
Trait Implementations§
Source§impl<W: Illuminant, const OFFSET: usize> ChannelMap<4> for LCh<W, OFFSET>
impl<W: Illuminant, const OFFSET: usize> ChannelMap<4> for LCh<W, OFFSET>
impl<W: Illuminant, const OFFSET: usize> BackingStore<[f32; 3]> for LCh<W, OFFSET>
impl<W: Illuminant, const OFFSET: usize> BackingStore<[f32; 4]> for LCh<W, OFFSET>
impl<W: Copy + Illuminant, const OFFSET: usize> Copy for LCh<W, OFFSET>
impl<W: Eq + Illuminant, const OFFSET: usize> Eq for LCh<W, OFFSET>
impl<W: Illuminant, const OFFSET: usize> StructuralPartialEq for LCh<W, OFFSET>
Auto Trait Implementations§
impl<W, const OFFSET: usize> Freeze for LCh<W, OFFSET>
impl<W, const OFFSET: usize> RefUnwindSafe for LCh<W, OFFSET>where
W: RefUnwindSafe,
impl<W, const OFFSET: usize> Send for LCh<W, OFFSET>where
W: Send,
impl<W, const OFFSET: usize> Sync for LCh<W, OFFSET>where
W: Sync,
impl<W, const OFFSET: usize> Unpin for LCh<W, OFFSET>where
W: Unpin,
impl<W, const OFFSET: usize> UnsafeUnpin for LCh<W, OFFSET>
impl<W, const OFFSET: usize> UnwindSafe for LCh<W, OFFSET>where
W: 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