pub struct Lab<W: Illuminant = D65, const OFFSET: usize = 0>(/* private fields */);Expand description
CIE 1976 Lab* color space under reference white W.
Perceptually uniform for small color differences. L* is lightness [0, 100], a* is green-red [-128, 127], b* is blue-yellow [-128, 127]. Reference: CIE 015:2018.
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 Lab<W, OFFSET>
impl<W: Illuminant, const OFFSET: usize> ChannelMap<4> for Lab<W, OFFSET>
impl<W: Illuminant, const OFFSET: usize> BackingStore<[f32; 3]> for Lab<W, OFFSET>
impl<W: Illuminant, const OFFSET: usize> BackingStore<[f32; 4]> for Lab<W, OFFSET>
impl<W: Copy + Illuminant, const OFFSET: usize> Copy for Lab<W, OFFSET>
impl<W: Eq + Illuminant, const OFFSET: usize> Eq for Lab<W, OFFSET>
impl<W: Illuminant, const OFFSET: usize> StructuralPartialEq for Lab<W, OFFSET>
Auto Trait Implementations§
impl<W, const OFFSET: usize> Freeze for Lab<W, OFFSET>
impl<W, const OFFSET: usize> RefUnwindSafe for Lab<W, OFFSET>where
W: RefUnwindSafe,
impl<W, const OFFSET: usize> Send for Lab<W, OFFSET>where
W: Send,
impl<W, const OFFSET: usize> Sync for Lab<W, OFFSET>where
W: Sync,
impl<W, const OFFSET: usize> Unpin for Lab<W, OFFSET>where
W: Unpin,
impl<W, const OFFSET: usize> UnsafeUnpin for Lab<W, OFFSET>
impl<W, const OFFSET: usize> UnwindSafe for Lab<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