pub trait FromColor<Other> {
// Required method
fn from_color(&mut self, _: &Other);
}Expand description
Provides color conversions for the different pixel types.
Required Methods§
Sourcefn from_color(&mut self, _: &Other)
fn from_color(&mut self, _: &Other)
Changes self to represent Other in the color space of Self
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".