pub struct Lab<T, Wp> {
pub l: T,
pub a: T,
pub b: T,
pub white_point: Wp,
}
Fields§
§l: T
§a: T
§b: T
§white_point: Wp
Implementations§
source§impl<T: Copy, Wp: WhitePoint> Lab<T, Wp>
impl<T: Copy, Wp: WhitePoint> Lab<T, Wp>
pub fn brightness(&self) -> T
source§impl<T: Float, Wp: WhitePoint> Lab<T, Wp>
impl<T: Float, Wp: WhitePoint> Lab<T, Wp>
pub fn chromacity(&self) -> T
pub fn hue(&self) -> T
pub fn offset_chromacity(&self, chroma_offset: T) -> Lab<T, Wp>
Trait Implementations§
impl<T: Copy, Wp: Copy> Copy for Lab<T, Wp>
Auto Trait Implementations§
impl<T, Wp> RefUnwindSafe for Lab<T, Wp>where T: RefUnwindSafe, Wp: RefUnwindSafe,
impl<T, Wp> Send for Lab<T, Wp>where T: Send, Wp: Send,
impl<T, Wp> Sync for Lab<T, Wp>where T: Sync, Wp: Sync,
impl<T, Wp> Unpin for Lab<T, Wp>where T: Unpin, Wp: Unpin,
impl<T, Wp> UnwindSafe for Lab<T, Wp>where T: UnwindSafe, Wp: 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