pub fn from_encoding<St>(color: Rgb<St, T>) -> Rgb<S, T>
    where
        St: RgbStandard<T, Space = S::Space>,
    {
        Rgb::new(
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.red)),
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.green)),
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.blue)),
        )
    }
/// Convert RGB from a different encoding.
Convert RGB from a different encoding.
Convert RGB from a different encoding .
pub fn from_encoding<St>(color: Rgb<St, T>) -> Rgb<S, T>
    where
        St: RgbStandard<T, Space = S::Space>,
    {
        Rgb::new(
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.red)),
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.green)),
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.blue)),
        )
    }
pub fn from_encoding < St > ( color : Rgb < St , T > ) -> Rgb < S , T > where St : RgbStandard < T , Space = S :: Space > , { Rgb :: new ( S :: TransferFn :: from_linear ( St :: TransferFn :: into_linear ( color . red ) ) , S :: TransferFn :: from_linear ( St :: TransferFn :: into_linear ( color . green ) ) , S :: TransferFn :: from_linear ( St :: TransferFn :: into_linear ( color . blue ) ) , ) }
Convert RGB from a different encoding.
Convert RGB from a different encoding .
color
Rgb<St, T>
color
Rgb<St, T>