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.