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