#[repr(u8)]pub enum WhitePoint {
D65 = 1,
Custom(Customxy),
E = 10,
Dci = 11,
}
Expand description
White point.
Variants§
D65 = 1
CIE Standard Illuminant D65.
Custom(Customxy)
Custom white point.
E = 10
CIE Standard Illuminant E.
Dci = 11
DCI-P3 white point (SMPTE ST 428-1).
Implementations§
Source§impl WhitePoint
impl WhitePoint
Sourcepub fn as_chromaticity(self) -> [f32; 2]
pub fn as_chromaticity(self) -> [f32; 2]
Returns the xy-chromaticity coordinate of the white point as floating point values.
Trait Implementations§
Source§impl<Ctx> Bundle<Ctx> for WhitePoint
impl<Ctx> Bundle<Ctx> for WhitePoint
Source§impl Clone for WhitePoint
impl Clone for WhitePoint
Source§fn clone(&self) -> WhitePoint
fn clone(&self) -> WhitePoint
Returns a copy 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 WhitePoint
impl Debug for WhitePoint
Source§impl Default for WhitePoint
impl Default for WhitePoint
Source§fn default() -> WhitePoint
fn default() -> WhitePoint
Returns the “default value” for a type. Read more
Source§impl PartialEq for WhitePoint
impl PartialEq for WhitePoint
impl Copy for WhitePoint
impl Eq for WhitePoint
impl StructuralPartialEq for WhitePoint
Auto Trait Implementations§
impl Freeze for WhitePoint
impl RefUnwindSafe for WhitePoint
impl Send for WhitePoint
impl Sync for WhitePoint
impl Unpin for WhitePoint
impl UnwindSafe for WhitePoint
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, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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