pub(crate) trait IntoColor<Other> {
// Required method
fn into_color(&self) -> Other;
}Expand description
Copy-based conversions to target pixel types using FromColor.
Required Methods§
Sourcefn into_color(&self) -> Other
fn into_color(&self) -> Other
Constructs a pixel of the target type and converts this pixel into it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".