Struct rin::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, S> Color<T> for Luma<T, S> where
T: Channel,
[src]
impl<T, S> Color<T> for Luma<T, S> where
T: Channel,
[src]pub fn clamp_s(self, lo: T, hi: T) -> Luma<T, S>
[src]
Clamps the components of the color to the range (lo,hi)
.
pub 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
.
pub fn inverse(self) -> Luma<T, S>
[src]
Inverts the color.
pub fn mix(self, other: Luma<T, S>, value: T) -> Luma<T, S>
[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]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Luma<T, S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Luma<T, S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T, S> FloatColor<T> for Luma<T, S> where
T: FloatChannel,
[src]
impl<T, S> FloatColor<T> for Luma<T, S> where
T: FloatChannel,
[src]impl<T, S> Saturating for Luma<T, S> where
T: Channel + Saturating,
[src]
impl<T, S> Saturating for Luma<T, S> where
T: Channel + Saturating,
[src]pub fn saturating_add(self, v: Luma<T, S>) -> Luma<T, S>
[src]
pub fn saturating_sub(self, v: Luma<T, S>) -> Luma<T, S>
[src]
impl<T, S> Serialize for Luma<T, S> where
T: Serialize,
[src]
impl<T, S> Serialize for Luma<T, S> where
T: Serialize,
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<T, S> ToLuma for Luma<T, S> where
T: Channel,
S: TransferFunction,
[src]
impl<T, S> ToLuma for Luma<T, S> where
T: Channel,
S: TransferFunction,
[src]impl<T, S> Copy for Luma<T, S> where
T: Copy,
[src]
T: Copy,
impl<N, S> Eq for Luma<N, S> where
N: Clone + PartialEq<N> + Eq + Num + NumCast,
[src]
N: Clone + PartialEq<N> + Eq + Num + NumCast,
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<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,