Trait Backend

Source
pub trait Backend {
    // Required methods
    fn figure(&mut self) -> Result<&mut Self>;
    fn subplot(&mut self, i: u32, j: u32, k: u32) -> Result<&mut Self>;
    fn grid(&mut self, grid: bool) -> Result<&mut Self>;
    fn legend(&mut self, loc: &str) -> Result<&mut Self>;
    fn xlim(&mut self, xlim: &(f64, f64)) -> Result<&mut Self>;
    fn ylim(&mut self, ylim: &(f64, f64)) -> Result<&mut Self>;
    fn set_style(&mut self, stylename: &str) -> Result<&mut Self>;
    fn savefig(&mut self, filename: &str) -> Result<&mut Self>;
    fn show(&mut self) -> Result<&mut Self>;
    fn plot(
        &mut self,
        xdata: &[f64],
        ydata: &[f64],
        label: &Option<String>,
        color: &Option<String>,
        marker: &Option<String>,
        linestyle: &Option<String>,
        linewidth: &Option<f64>,
    ) -> Result<&mut Self>;
    fn scatter(
        &mut self,
        xdata: &[f64],
        ydata: &[f64],
        label: &Option<String>,
        color: &Option<String>,
        marker: &Option<String>,
    ) -> Result<&mut Self>;
    fn fill_between(
        &mut self,
        x: &[f64],
        y1: &[f64],
        y2: &[f64],
        where_: &Option<&[bool]>,
        interpolate: bool,
        step: &Option<String>,
    ) -> Result<&mut Self>;
}

Required Methods§

Source

fn figure(&mut self) -> Result<&mut Self>

Source

fn subplot(&mut self, i: u32, j: u32, k: u32) -> Result<&mut Self>

Source

fn grid(&mut self, grid: bool) -> Result<&mut Self>

Source

fn legend(&mut self, loc: &str) -> Result<&mut Self>

Source

fn xlim(&mut self, xlim: &(f64, f64)) -> Result<&mut Self>

Source

fn ylim(&mut self, ylim: &(f64, f64)) -> Result<&mut Self>

Source

fn set_style(&mut self, stylename: &str) -> Result<&mut Self>

Source

fn savefig(&mut self, filename: &str) -> Result<&mut Self>

Source

fn show(&mut self) -> Result<&mut Self>

Source

fn plot( &mut self, xdata: &[f64], ydata: &[f64], label: &Option<String>, color: &Option<String>, marker: &Option<String>, linestyle: &Option<String>, linewidth: &Option<f64>, ) -> Result<&mut Self>

Source

fn scatter( &mut self, xdata: &[f64], ydata: &[f64], label: &Option<String>, color: &Option<String>, marker: &Option<String>, ) -> Result<&mut Self>

Source

fn fill_between( &mut self, x: &[f64], y1: &[f64], y2: &[f64], where_: &Option<&[bool]>, interpolate: bool, step: &Option<String>, ) -> Result<&mut Self>

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§