Skip to main content

IndicatorOutput

Trait IndicatorOutput 

Source
pub trait IndicatorOutput: PineOutput {
    // Required methods
    fn set_indicator(&mut self, indicator: Indicator);
    fn indicator(&self) -> Option<&Indicator>;
}
Expand description

Extension trait for the script’s indicator(...) declaration.

Required Methods§

Source

fn set_indicator(&mut self, indicator: Indicator)

Record the indicator declaration (a script has at most one).

Source

fn indicator(&self) -> Option<&Indicator>

The declaration, if the script declared one.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§