Skip to main content

MetadataOutput

Trait MetadataOutput 

Source
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§

Source

fn set_indicator(&mut self, indicator: Indicator)

Record the indicator declaration.

Source

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

The indicator declaration, if the script declared one.

Source

fn set_library(&mut self, library: Library)

Record the library declaration.

Source

fn library(&self) -> Option<&Library>

The library 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§