colr-types 0.3.1

Color model ZSTs and marker traits for colr.
Documentation
//! RGB color space model.

use core::marker::PhantomData;

use crate::BackingStore;
use crate::layout::Rgba;
use crate::primaries::Primaries;
use crate::transfer::TransferFunction;

/// A color model formed by composing primaries P, transfer function TF, and channel layout L. Layout defaults to Rgba.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub struct Rgb<P: Primaries, TF: TransferFunction, L = Rgba>(PhantomData<(P, TF, L)>);

impl<P, TF, L, S> BackingStore<S> for Rgb<P, TF, L>
where
    P: Primaries,
    TF: TransferFunction,
    L: BackingStore<S>,
{
}