Struct SingleColorPrimary
pub struct SingleColorPrimary { pub x: f64, pub y: f64, pub z: f64 }
Represents a single channel color primary.
This can be viewed as a 3D coordinate of the color primary for a given colorspace
Fields
x: f64y: f64z: f64
Trait Implementations
impl Clone for SingleColorPrimary
fn clone(&self) -> SingleColorPrimary
impl Copy for SingleColorPrimary
impl Debug for SingleColorPrimary
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for SingleColorPrimary
fn default() -> SingleColorPrimary
Auto Trait Implementations
impl Freeze for SingleColorPrimary
impl RefUnwindSafe for SingleColorPrimary
impl Send for SingleColorPrimary
impl Sync for SingleColorPrimary
impl Unpin for SingleColorPrimary
impl UnsafeUnpin for SingleColorPrimary
impl UnwindSafe for SingleColorPrimary
Blanket Implementations
impl<T> Any for SingleColorPrimary
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SingleColorPrimary
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SingleColorPrimary
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for SingleColorPrimary
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for SingleColorPrimary
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for SingleColorPrimary
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for SingleColorPrimary
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 SingleColorPrimary
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SingleColorPrimary
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>