Trait image::color::FromColor

source ·
pub trait FromColor<Other> {
    // Required method
    fn from_color(&mut self, _: &Other);
}
Expand description

Provides color conversions for the different pixel types.

Required Methods§

source

fn from_color(&mut self, _: &Other)

Changes self to represent Other in the color space of Self

Implementors§

source§

impl<S: Primitive + Enlargeable, T> FromColor<Rgb<S>> for Luma<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive + Enlargeable, T> FromColor<Rgb<S>> for LumaA<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive + Enlargeable, T> FromColor<Rgba<S>> for Luma<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive + Enlargeable, T> FromColor<Rgba<S>> for LumaA<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<Luma<S>> for Luma<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<Luma<S>> for LumaA<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<Luma<S>> for Rgb<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<Luma<S>> for Rgba<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<LumaA<S>> for Luma<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<LumaA<S>> for LumaA<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<LumaA<S>> for Rgb<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<LumaA<S>> for Rgba<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<Rgb<S>> for Rgb<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<Rgb<S>> for Rgba<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<Rgba<S>> for Rgb<T>
where T: FromPrimitive<S> + Primitive,

source§

impl<S: Primitive, T> FromColor<Rgba<S>> for Rgba<T>
where T: FromPrimitive<S> + Primitive,