Skip to main content

Visualizable

Trait Visualizable 

Source
pub trait Visualizable {
    // Required methods
    fn plot_2d(&self, config: &PlotConfig) -> Result<Vec<u8>, Box<dyn Error>>;
    fn plot_3d(&self, config: &PlotConfig) -> Result<Vec<u8>, Box<dyn Error>>;
    fn animate(
        &self,
        config: &PlotConfig,
    ) -> Result<Vec<Vec<u8>>, Box<dyn Error>>;
}
Expand description

Trait for functions that can be visualized

Required Methods§

Source

fn plot_2d(&self, config: &PlotConfig) -> Result<Vec<u8>, Box<dyn Error>>

Generate a 2D plot

Source

fn plot_3d(&self, config: &PlotConfig) -> Result<Vec<u8>, Box<dyn Error>>

Generate a 3D surface plot

Source

fn animate(&self, config: &PlotConfig) -> Result<Vec<Vec<u8>>, Box<dyn Error>>

Generate an animated visualization

Implementors§