pub trait Convert<FromType: Type, FromColor: Color, ToType: Type, ToColor: Color> {
fn convert(&self, to: &mut impl Image<ToType, ToColor>);
}
Expand description
Provides a way to convert between image types
pub trait Convert<FromType: Type, FromColor: Color, ToType: Type, ToColor: Color> {
fn convert(&self, to: &mut impl Image<ToType, ToColor>);
}
Provides a way to convert between image types