Struct ColorPrimaries
pub struct ColorPrimaries { pub red: SingleColorPrimary, pub green: SingleColorPrimary, pub blue: SingleColorPrimary, pub white_point: SingleColorPrimary }
A collection of red,green and blue color primaries placed in one struct for easy manipulation
Fields
red: SingleColorPrimaryRed color primaries
green: SingleColorPrimaryGreen color primaries
blue: SingleColorPrimaryBlue color primaries
white_point: SingleColorPrimary
Trait Implementations
impl Clone for ColorPrimaries
fn clone(&self) -> ColorPrimaries
impl Copy for ColorPrimaries
impl Debug for ColorPrimaries
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for ColorPrimaries
fn default() -> ColorPrimaries
Auto Trait Implementations
impl Freeze for ColorPrimaries
impl RefUnwindSafe for ColorPrimaries
impl Send for ColorPrimaries
impl Sync for ColorPrimaries
impl Unpin for ColorPrimaries
impl UnsafeUnpin for ColorPrimaries
impl UnwindSafe for ColorPrimaries
Blanket Implementations
impl<T> Any for ColorPrimaries
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ColorPrimaries
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ColorPrimaries
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ColorPrimaries
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ColorPrimaries
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ColorPrimaries
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ColorPrimaries
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 ColorPrimaries
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ColorPrimaries
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>