pub trait MetadataOutput: PineOutput {
// Required methods
fn set_indicator(&mut self, indicator: Indicator);
fn indicator(&self) -> Option<&Indicator>;
fn set_library(&mut self, library: Library);
fn library(&self) -> Option<&Library>;
}Expand description
Extension trait for a script’s declaration statement — indicator(...) or
library(...) (a script has at most one).
Required Methods§
Sourcefn set_indicator(&mut self, indicator: Indicator)
fn set_indicator(&mut self, indicator: Indicator)
Record the indicator declaration.
Sourcefn indicator(&self) -> Option<&Indicator>
fn indicator(&self) -> Option<&Indicator>
The indicator declaration, if the script declared one.
Sourcefn set_library(&mut self, library: Library)
fn set_library(&mut self, library: Library)
Record the library declaration.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".