pub trait AdaptInto<D, Swp, Dwp, T>: Sizedwhere
    T: Real + Zero + Arithmetics + Clone,
    Swp: WhitePoint<T>,
    Dwp: WhitePoint<T>,{
    // Required method
    fn adapt_into_using<M: TransformMatrix<T>>(self, method: M) -> D;

    // Provided method
    fn adapt_into(self) -> D { ... }
}
Expand description

Trait to convert color with one reference white point into another

Converts a color with the source white point (Swp) into the destination white point (Dwp). Uses the bradford method for conversion by default.

Required Methods§

source

fn adapt_into_using<M: TransformMatrix<T>>(self, method: M) -> D

Convert the source color to the destination color using the specified method.

Provided Methods§

source

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default.

Implementors§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, D: AdaptFrom<S, Swp, Dwp, T>,