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.
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.