pub trait Renderer {
// Required methods
fn draw<F: Fn(&mut Frame)>(&self, bounds: Size, draw_fn: F) -> Geometry;
fn draw_cache<F: Fn(&mut Frame)>(
&self,
cache: &Cache,
bounds: Size,
draw_fn: F,
) -> Geometry;
}
Expand description
graphics renderer
Required 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.