pub trait Renderer: Renderer {
    type ImageHandle: Hash;
    // Required methods
    fn dimensions(&self, handle: &Self::ImageHandle) -> (u32, u32);
    fn draw<M>(
        &mut self,
        defaults: &Self::Defaults,
        bounds: Rectangle,
        cursor_position: Point,
        viewport: &Rectangle,
        content: &Element<'_, M, Self>,
        content_layout: Layout<'_>,
    ) -> Self::Output;
}Required Associated Types§
Sourcetype ImageHandle: Hash
 
type ImageHandle: Hash
The handle used by this renderer for images.
Required Methods§
fn dimensions(&self, handle: &Self::ImageHandle) -> (u32, u32)
fn draw<M>( &mut self, defaults: &Self::Defaults, bounds: Rectangle, cursor_position: Point, viewport: &Rectangle, content: &Element<'_, M, Self>, content_layout: Layout<'_>, ) -> Self::Output
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.