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)) -> Selffn 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SourceChromaticities
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SourceChromaticities
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for SourceChromaticities
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for SourceChromaticities
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for SourceChromaticities
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for SourceChromaticities
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 SourceChromaticities
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SourceChromaticities
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>