pub trait Renderer: Renderer {
// Required method
fn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive);
}
Expand description
A renderer than can draw custom primitives.
Required Methods§
sourcefn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive)
fn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive)
Draws a custom primitive.
Object Safety§
This trait is not object safe.