Trait Renderer

Source
pub trait Renderer: Renderer {
    // Required method
    fn draw<M>(
        &mut self,
        defaults: &Self::Defaults,
        children: &[Element<'_, M, Self>],
        layout: Layout<'_>,
        cursor_position: Point,
        viewport: &Rectangle,
    ) -> Self::Output;
}

Required Methods§

Source

fn draw<M>( &mut self, defaults: &Self::Defaults, children: &[Element<'_, M, Self>], layout: Layout<'_>, cursor_position: Point, viewport: &Rectangle, ) -> 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.

Implementors§