pub fn plugin(options: IniOptions) -> PluginExpand description
The plugin form of ini, for Tabnas::use_plugin.
The options are typed, so they travel in this closure rather than in
the engine’s serialized plugin bag, exactly as
tabnas_hoover::plugin and tabnas_directive::plugin do. Installed
this way the grammar is re-applied to derived instances.
let mut parser = tabnas_jsonic::make();
parser.use_plugin(tabnas_ini::plugin(tabnas_ini::IniOptions::default()), None)?;
assert_eq!(parser.parse("a=1")?.to_string(), r#"{"a":"1"}"#);