Skip to main content

use_plugin

Function use_plugin 

Source
pub fn use_plugin(
    parser: &mut Tabnas,
    plugin: Plugin,
    options: Option<Value>,
) -> Result<(), PluginError>
Expand description

Install plugin on parser, dumping describe() afterwards when the debug plugin was installed with print on.

TypeScript reassigns tabnas.use to wrap it; neither Go’s (*Tabnas).Use nor Rust’s Tabnas::use_plugin is a reassignable field, so both ports expose the wrapper as a function instead. A plugin installed directly through Tabnas::use_plugin therefore does not trigger the USE: dump.