#[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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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