Skip to main content

Renderable

Trait Renderable 

Source
pub trait Renderable {
    // Required method
    fn render(&self) -> RgbFrame;
}
Expand description

An environment that can render its current state to an RGB frame.

Implement this trait to enable GIF recording via write_gif.

Required Methods§

Source

fn render(&self) -> RgbFrame

Render the current state to an RGB pixel buffer.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§