pub trait Renderer: Renderer {
    // Required method
    fn draw<M, B>(
        &mut self,
        defaults: &Self::Defaults,
        background: &B,
        background_layout: Layout<'_>,
        viewport: &Rectangle,
        content: &Element<'_, M, Self>,
        content_layout: Layout<'_>,
        cursor_position: Point,
    ) -> Self::Output
       where B: Background<Self>;
}Required Methods§
fn draw<M, B>(
    &mut self,
    defaults: &Self::Defaults,
    background: &B,
    background_layout: Layout<'_>,
    viewport: &Rectangle,
    content: &Element<'_, M, Self>,
    content_layout: Layout<'_>,
    cursor_position: Point,
) -> Self::Outputwhere
    B: Background<Self>,
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.