Skip to main content

colr_types/model/
rgb.rs

1//! RGB color space model.
2
3use core::marker::PhantomData;
4
5use crate::BackingStore;
6use crate::layout::Rgba;
7use crate::primaries::Primaries;
8use crate::transfer::TransferFunction;
9
10/// A color model formed by composing primaries P, transfer function TF, and channel layout L. Layout defaults to Rgba.
11#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
12pub struct Rgb<P: Primaries, TF: TransferFunction, L = Rgba>(PhantomData<(P, TF, L)>);
13
14impl<P, TF, L, S> BackingStore<S> for Rgb<P, TF, L>
15where
16    P: Primaries,
17    TF: TransferFunction,
18    L: BackingStore<S>,
19{
20}