pub struct Luma<T, S = Srgb> {
pub l: T,
pub standard: PhantomData<S>,
}
Fields
l: T
standard: PhantomData<S>
Implementations
Trait Implementations
sourceimpl<T: Channel, S> Color<T> for Luma<T, S>
impl<T: Channel, S> Color<T> for Luma<T, S>
sourceimpl<'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>,
sourcefn 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
sourceimpl<T: FloatChannel, S> FloatColor<T> for Luma<T, S>
impl<T: FloatChannel, S> FloatColor<T> for Luma<T, S>
sourceimpl<T: Channel + Saturating, S> Saturating for Luma<T, S>
impl<T: Channel + Saturating, S> Saturating for Luma<T, S>
sourcefn 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. Read more
sourcefn 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. Read more
sourceimpl<T: Channel, S: TransferFunction> ToLuma for Luma<T, S>
impl<T: Channel, S: TransferFunction> ToLuma for Luma<T, S>
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
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