Skip to main content

ChartRenderer

Trait ChartRenderer 

Source
pub trait ChartRenderer: Send + Sync {
    // Required method
    fn render(&self, chart: &Chart) -> Result<Image, ChartError>;
}
Expand description

Draws charts as PNG images (ADR 0016). Synchronous and CPU-bound: the runtime calls it off the async threads.

Required Methods§

Source

fn render(&self, chart: &Chart) -> Result<Image, ChartError>

Draws chart.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§