#[repr(u8)]pub(crate) enum DerivedLuminance {
Constant = 0,
NonConstant = 1,
}Variants§
Constant = 0
Luminance is calculated in linear space: Y’ = dot(K_rgb, RGB)’
NonConstant = 1
Luminance is calculated in the transferred space: Y’ = dot(K_rgb, RGB’)
Trait Implementations§
Source§impl Clone for DerivedLuminance
impl Clone for DerivedLuminance
Source§fn clone(&self) -> DerivedLuminance
fn clone(&self) -> DerivedLuminance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DerivedLuminance
impl Debug for DerivedLuminance
Source§impl Hash for DerivedLuminance
impl Hash for DerivedLuminance
Source§impl PartialEq for DerivedLuminance
impl PartialEq for DerivedLuminance
impl Copy for DerivedLuminance
impl Eq for DerivedLuminance
impl StructuralPartialEq for DerivedLuminance
Auto Trait Implementations§
impl Freeze for DerivedLuminance
impl RefUnwindSafe for DerivedLuminance
impl Send for DerivedLuminance
impl Sync for DerivedLuminance
impl Unpin for DerivedLuminance
impl UnsafeUnpin for DerivedLuminance
impl UnwindSafe for DerivedLuminance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more