image::color

Trait Blend

Source
pub(crate) trait Blend {
    // Required method
    fn blend(&mut self, other: &Self);
}
Expand description

Blends a color inter another one

Required Methods§

Source

fn blend(&mut self, other: &Self)

Blends a color in-place.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Primitive> Blend for Luma<T>

Source§

impl<T: Primitive> Blend for LumaA<T>

Source§

impl<T: Primitive> Blend for Rgb<T>

Source§

impl<T: Primitive> Blend for Rgba<T>