Struct rin::color::Lab [−][src]
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
impl<T, Wp> Lab<T, Wp> where
T: Copy,
Wp: WhitePoint,
[src]
impl<T, Wp> Lab<T, Wp> where
T: Copy,
Wp: WhitePoint,
[src]pub fn brightness(&self) -> T
[src]
impl<T, Wp> Lab<T, Wp> where
T: Float,
Wp: WhitePoint,
[src]
impl<T, Wp> Lab<T, Wp> where
T: Float,
Wp: WhitePoint,
[src]pub fn chromacity(&self) -> T
[src]
pub fn hue(&self) -> T
[src]
pub fn offset_chromacity(&self, chroma_offset: T) -> Lab<T, Wp>
[src]
Trait Implementations
impl<T, Wp> Add<Lab<T, Wp>> for Lab<T, Wp> where
T: Channel + Float + NumCast,
Wp: WhitePoint,
[src]
impl<T, Wp> Add<Lab<T, Wp>> for Lab<T, Wp> where
T: Channel + Float + NumCast,
Wp: WhitePoint,
[src]impl<T, Wp> Copy for Lab<T, Wp> where
T: Copy,
Wp: Copy,
[src]
T: Copy,
Wp: Copy,
Auto Trait Implementations
impl<T, Wp> RefUnwindSafe for Lab<T, Wp> where
T: RefUnwindSafe,
Wp: RefUnwindSafe,
T: RefUnwindSafe,
Wp: RefUnwindSafe,
impl<T, Wp> Send for Lab<T, Wp> where
T: Send,
Wp: Send,
T: Send,
Wp: Send,
impl<T, Wp> Sync for Lab<T, Wp> where
T: Sync,
Wp: Sync,
T: Sync,
Wp: Sync,
impl<T, Wp> Unpin for Lab<T, Wp> where
T: Unpin,
Wp: Unpin,
T: Unpin,
Wp: Unpin,
impl<T, Wp> UnwindSafe for Lab<T, Wp> where
T: UnwindSafe,
Wp: UnwindSafe,
T: UnwindSafe,
Wp: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,