Skip to main content

Renderer

Trait Renderer 

Source
pub trait Renderer<WORLD: Send + Sync + 'static>: Send + Sync {
    type Error: Debug;

    // Required method
    fn render(&mut self, world: Arc<RwLock<WORLD>>) -> Result<(), Self::Error>;
}
Expand description

Rendering Engine Trait

Required Associated Types§

Required Methods§

Source

fn render(&mut self, world: Arc<RwLock<WORLD>>) -> Result<(), Self::Error>

Render the necessary contents of the world

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§