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
sourceimpl<T: Copy, Wp: WhitePoint> Lab<T, Wp>
impl<T: Copy, Wp: WhitePoint> Lab<T, Wp>
pub fn brightness(&self) -> T
sourceimpl<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
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