Trait image::color::IntoColor

source ·
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§

source

fn into_color(&self) -> Other

Constructs a pixel of the target type and converts this pixel into it.

Implementors§

source§

impl<O, S> IntoColor<O> for S
where O: Pixel + FromColor<S>,