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§
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
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.