Skip to main content

Drawable

Trait Drawable 

Source
pub trait Drawable {
    // Required method
    fn draw(
        &self,
        context: &mut DrawContext,
        graphics: &mut dyn GraphicsTarget<Vertex>,
    );
}

Required Methods§

Source

fn draw( &self, context: &mut DrawContext, graphics: &mut dyn GraphicsTarget<Vertex>, )

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§