Trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped

source ·
pub trait Cam16FromUnclamped<WpParam, C> {
    type Scalar;

    // Required method
    fn cam16_from_unclamped(
        color: C,
        parameters: BakedParameters<WpParam, Self::Scalar>,
    ) -> Self;
}
Expand description

A trait for converting into a CAM16 color type from C without clamping.

Required Associated Types§

source

type Scalar

The number type that’s used in parameters when converting.

Required Methods§

source

fn cam16_from_unclamped( color: C, parameters: BakedParameters<WpParam, Self::Scalar>, ) -> Self

Converts color into Self, using the provided parameters.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Xyz<<WpParam as WhitePointParameter<<T as FromScalar>::Scalar>>::StaticWp, T>> for Cam16<T>

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>> for Cam16Jch<T>
where Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16<T>>, WpParam: WhitePointParameter<T>,

source§

type Scalar = <Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T> as IntoCam16Unclamped<WpParam, Cam16<T>>>::Scalar

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>> for Cam16Jmh<T>
where Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16<T>>, WpParam: WhitePointParameter<T>,

source§

type Scalar = <Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T> as IntoCam16Unclamped<WpParam, Cam16<T>>>::Scalar

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>> for Cam16Jsh<T>
where Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16<T>>, WpParam: WhitePointParameter<T>,

source§

type Scalar = <Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T> as IntoCam16Unclamped<WpParam, Cam16<T>>>::Scalar

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>> for Cam16Qch<T>
where Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16<T>>, WpParam: WhitePointParameter<T>,

source§

type Scalar = <Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T> as IntoCam16Unclamped<WpParam, Cam16<T>>>::Scalar

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>> for Cam16Qmh<T>
where Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16<T>>, WpParam: WhitePointParameter<T>,

source§

type Scalar = <Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T> as IntoCam16Unclamped<WpParam, Cam16<T>>>::Scalar

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>> for Cam16Qsh<T>
where Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16<T>>, WpParam: WhitePointParameter<T>,

source§

type Scalar = <Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T> as IntoCam16Unclamped<WpParam, Cam16<T>>>::Scalar

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Cam16Jch<T>> for Cam16<T>

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Cam16Jmh<T>> for Cam16<T>

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Cam16Jsh<T>> for Cam16<T>

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Cam16Qch<T>> for Cam16<T>

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Cam16Qmh<T>> for Cam16<T>

source§

impl<WpParam, T> Cam16FromUnclamped<WpParam, Cam16Qsh<T>> for Cam16<T>