Trait Renderer

Source
pub trait Renderer: Renderer {
    // Required methods
    fn dimensions(&self, handle: Handle) -> (u32, u32);
    fn draw(
        &mut self,
        handle: Handle,
        color: Rgba<u8>,
        layout: Layout<'_>,
    ) -> Self::Output;
}

Required Methods§

Source

fn dimensions(&self, handle: Handle) -> (u32, u32)

Source

fn draw( &mut self, handle: Handle, color: Rgba<u8>, 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.

Implementors§