Trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped

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

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

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

Required Associated Types§

source

type Scalar

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

Required Methods§

source

fn from_cam16_unclamped( cam16: C, parameters: BakedParameters<WpParam, Self::Scalar>, ) -> Self

Converts cam16 into Self, using the provided parameters.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Jch<T>> for Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Jch<T>> for Cam16<T>
where Cam16<T>: Cam16FromUnclamped<WpParam, Cam16Jch<T>>,

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Jmh<T>> for Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Jmh<T>> for Cam16<T>
where Cam16<T>: Cam16FromUnclamped<WpParam, Cam16Jmh<T>>,

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Jsh<T>> for Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Jsh<T>> for Cam16<T>
where Cam16<T>: Cam16FromUnclamped<WpParam, Cam16Jsh<T>>,

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Qch<T>> for Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Qch<T>> for Cam16<T>
where Cam16<T>: Cam16FromUnclamped<WpParam, Cam16Qch<T>>,

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Qmh<T>> for Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Qmh<T>> for Cam16<T>
where Cam16<T>: Cam16FromUnclamped<WpParam, Cam16Qmh<T>>,

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Qsh<T>> for Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16Qsh<T>> for Cam16<T>
where Cam16<T>: Cam16FromUnclamped<WpParam, Cam16Qsh<T>>,

source§

impl<WpParam, T> FromCam16Unclamped<WpParam, Cam16<T>> for Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>
where WpParam: WhitePointParameter<T>, T: FromScalar, Cam16Jch<T>: Cam16IntoUnclamped<WpParam, Xyz<<WpParam as WhitePointParameter<T>>::StaticWp, T>, Scalar = <T as FromScalar>::Scalar>,