Skip to main content

PlotOutput

Trait PlotOutput 

Source
pub trait PlotOutput: PineOutput {
    // Required methods
    fn add_plot(&mut self, plot: Plot);
    fn plots(&self) -> &[Plot];
    fn add_plotarrow(&mut self, arrow: Plotarrow);
    fn plotarrows(&self) -> &[Plotarrow];
    fn add_plotbar(&mut self, bar: Plotbar);
    fn plotbars(&self) -> &[Plotbar];
    fn add_plotcandle(&mut self, candle: Plotcandle);
    fn plotcandles(&self) -> &[Plotcandle];
    fn add_plotchar(&mut self, char: Plotchar);
    fn plotchars(&self) -> &[Plotchar];
    fn add_plotshape(&mut self, shape: Plotshape);
    fn plotshapes(&self) -> &[Plotshape];
}
Expand description

Extension trait for plot-related output

Required Methods§

Source

fn add_plot(&mut self, plot: Plot)

Add a plot output

Source

fn plots(&self) -> &[Plot]

Get all plot outputs

Source

fn add_plotarrow(&mut self, arrow: Plotarrow)

Add a plotarrow output

Source

fn plotarrows(&self) -> &[Plotarrow]

Get all plotarrow outputs

Source

fn add_plotbar(&mut self, bar: Plotbar)

Add a plotbar output

Source

fn plotbars(&self) -> &[Plotbar]

Get all plotbar outputs

Source

fn add_plotcandle(&mut self, candle: Plotcandle)

Add a plotcandle output

Source

fn plotcandles(&self) -> &[Plotcandle]

Get all plotcandle outputs

Source

fn add_plotchar(&mut self, char: Plotchar)

Add a plotchar output

Source

fn plotchars(&self) -> &[Plotchar]

Get all plotchar outputs

Source

fn add_plotshape(&mut self, shape: Plotshape)

Add a plotshape output

Source

fn plotshapes(&self) -> &[Plotshape]

Get all plotshape outputs

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§