Struct Chromaticities
pub struct Chromaticities { pub red: Vec2<f32>, pub green: Vec2<f32>, pub blue: Vec2<f32>, pub white: Vec2<f32> }
The color space of the pixels.
If a file doesn't have a chromaticities attribute, display software
should assume that the file's primaries and the white point match Rec. ITU-R BT.709-3.
Fields
red: Vec2<f32>"Red" location on the CIE XY chromaticity diagram.
green: Vec2<f32>"Green" location on the CIE XY chromaticity diagram.
blue: Vec2<f32>"Blue" location on the CIE XY chromaticity diagram.
white: Vec2<f32>"White" location on the CIE XY chromaticity diagram.
Implementations
impl Chromaticities
const fn byte_size() -> usizeNumber of bytes this would consume in an exr file.
fn write<W: Write>(&self, write: &mut W) -> UnitResultWithout validation, write this instance to the byte stream.
fn read<R: Read>(read: &mut R) -> Result<Self>Read the value without validating.
Trait Implementations
impl Clone for Chromaticities
fn clone(&self) -> Self
impl Copy for Chromaticities
impl Debug for Chromaticities
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl PartialEq for Chromaticities
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for Chromaticities
Auto Trait Implementations
impl Freeze for Chromaticities
impl RefUnwindSafe for Chromaticities
impl Send for Chromaticities
impl Sync for Chromaticities
impl Unpin for Chromaticities
impl UnsafeUnpin for Chromaticities
impl UnwindSafe for Chromaticities
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Chromaticities
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Chromaticities
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for Chromaticities
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Chromaticities
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Chromaticities
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Chromaticities
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Chromaticities
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for Chromaticities
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for Chromaticities
where
T: ?Sized,
impl<T> ToOwned for Chromaticities
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Chromaticities
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Chromaticities
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Chromaticities
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>