pub struct Luma<T, S = Srgb> {
pub l: T,
pub standard: PhantomData<S>,
}
Fields§
§l: T
§standard: PhantomData<S>
Implementations§
Trait Implementations§
source§impl<T: Channel, S> Color<T> for Luma<T, S>
impl<T: Channel, S> Color<T> for Luma<T, S>
source§impl<'de, T, S> Deserialize<'de> for Luma<T, S>where
T: Deserialize<'de>,
impl<'de, T, S> Deserialize<'de> for Luma<T, S>where T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: FloatChannel, S> FloatColor<T> for Luma<T, S>
impl<T: FloatChannel, S> FloatColor<T> for Luma<T, S>
source§impl<N: PartialEq, S> PartialEq<Luma<N, S>> for Luma<N, S>
impl<N: PartialEq, S> PartialEq<Luma<N, S>> for Luma<N, S>
source§impl<T: Channel + Saturating, S> Saturating for Luma<T, S>
impl<T: Channel + Saturating, S> Saturating for Luma<T, S>
source§fn saturating_add(self, v: Luma<T, S>) -> Luma<T, S>
fn saturating_add(self, v: Luma<T, S>) -> Luma<T, S>
Saturating addition operator.
Returns a+b, saturating at the numeric bounds instead of overflowing.
source§fn saturating_sub(self, v: Luma<T, S>) -> Luma<T, S>
fn saturating_sub(self, v: Luma<T, S>) -> Luma<T, S>
Saturating subtraction operator.
Returns a-b, saturating at the numeric bounds instead of overflowing.
impl<T: Copy, S> Copy for Luma<T, S>
impl<N: Clone + PartialEq + Eq + Num + NumCast, S> Eq for Luma<N, S>
Auto Trait Implementations§
impl<T, S> RefUnwindSafe for Luma<T, S>where S: RefUnwindSafe, T: RefUnwindSafe,
impl<T, S> Send for Luma<T, S>where S: Send, T: Send,
impl<T, S> Sync for Luma<T, S>where S: Sync, T: Sync,
impl<T, S> Unpin for Luma<T, S>where S: Unpin, T: Unpin,
impl<T, S> UnwindSafe for Luma<T, S>where S: UnwindSafe, T: 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