Plot

Trait Plot 

Source
pub trait Plot {
    // Required methods
    fn plot(&self);
    fn write_html(&self, path: impl Into<String>);
    fn to_json(&self) -> Result<String, Error>;
    fn to_html(&self) -> String;
    fn to_inline_html(&self, plot_div_id: Option<&str>) -> String;
}
Expand description

A trait representing a generic plot that can be displayed or rendered.

Required Methods§

Source

fn plot(&self)

Source

fn write_html(&self, path: impl Into<String>)

Source

fn to_json(&self) -> Result<String, Error>

Source

fn to_html(&self) -> String

Source

fn to_inline_html(&self, plot_div_id: Option<&str>) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Plot for T
where T: PlotHelper + Serialize + Clone,