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§
Sourcefn render(&mut self, data: &RenderData)
fn render(&mut self, data: &RenderData)
Render a single scanlines to the image
Provided Methods§
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.