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§
Sourcefn add_plotarrow(&mut self, arrow: Plotarrow)
fn add_plotarrow(&mut self, arrow: Plotarrow)
Add a plotarrow output
Sourcefn plotarrows(&self) -> &[Plotarrow]
fn plotarrows(&self) -> &[Plotarrow]
Get all plotarrow outputs
Sourcefn add_plotbar(&mut self, bar: Plotbar)
fn add_plotbar(&mut self, bar: Plotbar)
Add a plotbar output
Sourcefn add_plotcandle(&mut self, candle: Plotcandle)
fn add_plotcandle(&mut self, candle: Plotcandle)
Add a plotcandle output
Sourcefn plotcandles(&self) -> &[Plotcandle]
fn plotcandles(&self) -> &[Plotcandle]
Get all plotcandle outputs
Sourcefn add_plotchar(&mut self, char: Plotchar)
fn add_plotchar(&mut self, char: Plotchar)
Add a plotchar output
Sourcefn add_plotshape(&mut self, shape: Plotshape)
fn add_plotshape(&mut self, shape: Plotshape)
Add a plotshape output
Sourcefn plotshapes(&self) -> &[Plotshape]
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".