Struct color::Luma [−][src]
pub struct Luma<T, S = Srgb> { pub l: T, pub standard: PhantomData<S>, }
Fields
l: T
standard: PhantomData<S>
Implementations
Trait Implementations
impl<T: Channel, S> Color<T> for Luma<T, S>
[src]
impl<T: Channel, S> Color<T> for Luma<T, S>
[src]fn clamp_s(self, lo: T, hi: T) -> Luma<T, S>
[src]
Clamps the components of the color to the range (lo,hi)
.
fn clamp_c(self, lo: Luma<T, S>, hi: Luma<T, S>) -> Luma<T, S>
[src]
Clamps the components of the color component-wise between lo
and hi
.
fn inverse(self) -> Luma<T, S>
[src]
Inverts the color.
fn mix(self, other: Self, value: T) -> Self
[src]
impl<'de, T, S> Deserialize<'de> for Luma<T, S> where
T: Deserialize<'de>,
[src]
impl<'de, T, S> Deserialize<'de> for Luma<T, S> where
T: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: FloatChannel, S> FloatColor<T> for Luma<T, S>
[src]
impl<T: FloatChannel, S> FloatColor<T> for Luma<T, S>
[src]impl<T: Channel + Saturating, S> Saturating for Luma<T, S>
[src]
impl<T: Channel + Saturating, S> Saturating for Luma<T, S>
[src]fn saturating_add(self, v: Luma<T, S>) -> Luma<T, S>
[src]
fn saturating_sub(self, v: Luma<T, S>) -> Luma<T, S>
[src]
impl<T: Channel, S: TransferFunction> ToLuma for Luma<T, S>
[src]
impl<T: Channel, S: TransferFunction> ToLuma for Luma<T, S>
[src]impl<T: Copy, S> Copy for Luma<T, S>
[src]
impl<N: Clone + PartialEq + Eq + Num + NumCast, S> Eq for Luma<N, S>
[src]
Auto Trait Implementations
impl<T, S> RefUnwindSafe for Luma<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for Luma<T, S> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<T, S> Sync for Luma<T, S> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<T, S> Unpin for Luma<T, S> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for Luma<T, S> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,