pub trait Renderer: Renderer {
type Handle: Clone;
// Required methods
fn measure_image(&self, handle: &Self::Handle) -> Size<u32>;
fn draw_image(&mut self, image: Image<Self::Handle>, bounds: Rectangle);
}
Expand description
A Renderer
that can render raster graphics.
Required Associated Types§
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.