palette::rgb

Trait Primaries

Source
pub trait Primaries<T> {
    // Required methods
    fn red() -> Yxy<Any, T>;
    fn green() -> Yxy<Any, T>;
    fn blue() -> Yxy<Any, T>;
}
Expand description

Represents the red, green and blue primaries of an RGB space.

Required Methods§

Source

fn red() -> Yxy<Any, T>

Primary red.

Source

fn green() -> Yxy<Any, T>

Primary green.

Source

fn blue() -> Yxy<Any, T>

Primary blue.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Real> Primaries<T> for Srgb