pub trait InColorSpace: Sized {
// Required method
fn in_color_space(self, color_space: InterpolationColorSpace) -> Self;
// Provided methods
fn in_oklaba(self) -> Self { ... }
fn in_oklch(self) -> Self { ... }
fn in_oklch_long(self) -> Self { ... }
fn in_srgb(self) -> Self { ... }
fn in_linear_rgb(self) -> Self { ... }
}
Expand description
Set the color space used for interpolation.
Required Methods§
Sourcefn in_color_space(self, color_space: InterpolationColorSpace) -> Self
fn in_color_space(self, color_space: InterpolationColorSpace) -> Self
Interpolate in the given color_space
.
Provided Methods§
Sourcefn in_oklch_long(self) -> Self
fn in_oklch_long(self) -> Self
Interpolate in OKLCH space (long hue path).
Sourcefn in_linear_rgb(self) -> Self
fn in_linear_rgb(self) -> Self
Interpolate in linear sRGB space.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.