Struct SourceChromaticities

pub struct SourceChromaticities { pub white: (ScaledFloat, ScaledFloat), pub red: (ScaledFloat, ScaledFloat), pub green: (ScaledFloat, ScaledFloat), pub blue: (ScaledFloat, ScaledFloat) }

Chromaticities of the color space primaries

Fields

white: (ScaledFloat, ScaledFloat)
red: (ScaledFloat, ScaledFloat)
green: (ScaledFloat, ScaledFloat)
blue: (ScaledFloat, ScaledFloat)

Implementations

impl SourceChromaticities

fn new(white: (f32, f32), red: (f32, f32), green: (f32, f32), blue: (f32, f32)) -> Self
fn to_be_bytes(self) -> [u8; 32]
fn encode<W: Write>(self, w: &mut W) -> Result<(), EncodingError>

Trait Implementations

impl Clone for SourceChromaticities

fn clone(&self) -> Self

impl Copy for SourceChromaticities

impl Debug for SourceChromaticities

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for SourceChromaticities

impl PartialEq for SourceChromaticities

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for SourceChromaticities

Auto Trait Implementations

impl Freeze for SourceChromaticities

impl RefUnwindSafe for SourceChromaticities

impl Send for SourceChromaticities

impl Sync for SourceChromaticities

impl Unpin for SourceChromaticities

impl UnsafeUnpin for SourceChromaticities

impl UnwindSafe for SourceChromaticities

Blanket Implementations

impl<T> Any for SourceChromaticities where T: 'static + ?Sized,

impl<T> Borrow<T> for SourceChromaticities where T: ?Sized,

impl<T> BorrowMut<T> for SourceChromaticities where T: ?Sized,

impl<T> CloneToUninit for SourceChromaticities where T: Clone,

impl<T> From<T> for SourceChromaticities

impl<T> ToOwned for SourceChromaticities where T: Clone,

impl<T, U> Into<U> for SourceChromaticities where U: From<T>,

impl<T, U> TryFrom<U> for SourceChromaticities where U: Into<T>,

impl<T, U> TryInto<U> for SourceChromaticities where U: TryFrom<T>,