#[non_exhaustive]pub enum WhitePoint {
D65,
D50,
Dci,
C,
E,
Custom(Chromaticity),
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Reference white point for XYZ, Gray, or custom-primary RGB spaces.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
D65
CIE D65 (0.3127, 0.3290) — sRGB, Display P3, BT.709, BT.2020, Adobe RGB.
D50
CIE D50 (0.3457, 0.3585) — ICC PCS / ProPhoto RGB.
Dci
SMPTE RP 431-2 DCI theater white (0.314, 0.351).
C
CIE Standard Illuminant C (0.310, 0.316) — NTSC 1953 (BT.470M) & Generic Film.
E
CIE Illuminant E (1/3, 1/3) — JPEG XL / XYZ equal-energy.
Custom(Chromaticity)
Explicit validated CIE 1931 (x, y) white point.
Implementations§
Trait Implementations§
Source§impl Clone for WhitePoint
impl Clone for WhitePoint
Source§fn clone(&self) -> WhitePoint
fn clone(&self) -> WhitePoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WhitePoint
Source§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
impl Eq for WhitePoint
Source§impl Hash for WhitePoint
impl Hash for WhitePoint
Source§impl PartialEq for WhitePoint
impl PartialEq 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 UnsafeUnpin 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