Skip to main content

Compositor

Trait Compositor 

Source
pub trait Compositor<D: DrawTarget<Color = Rgb565>> {
    // Required method
    fn plot(
        target: &mut D,
        x: i32,
        y: i32,
        color: Rgb565,
        opacity: u8,
        blend: BlendMode,
        backdrop: Rgb565,
    ) -> Result<(), D::Error>;
}

Required Methods§

Source

fn plot( target: &mut D, x: i32, y: i32, color: Rgb565, opacity: u8, blend: BlendMode, backdrop: Rgb565, ) -> Result<(), D::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<D: DrawTarget<Color = Rgb565> + PixelRead> Compositor<D> for Blend

Source§

impl<D: DrawTarget<Color = Rgb565>> Compositor<D> for Dither