Render

Trait Render 

Source
pub trait Render {
    // Required methods
    fn render(&mut self, data: &RenderData);
    fn color<C: Color>(&mut self, color: &C);

    // Provided method
    fn prepare(&self) { ... }
}
Expand description

Render scanlines to Image

Required Methods§

Source

fn render(&mut self, data: &RenderData)

Render a single scanlines to the image

Source

fn color<C: Color>(&mut self, color: &C)

Set the Color of the Renderer

Provided Methods§

Source

fn prepare(&self)

Prepare the Renderer

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§