[−][src]Macro jeep_train_macro::plugin
plugin!() { /* proc-macro */ }
keywords for plugin
plugin!{ const PLUGIN; func some_func; func not_found; }
let's break down the example
const {ident};
const
keyword must come at the top level and it cannot be used more than once.
Ident given with the const keyword will become the name of the router as it expands into const PLUGIN = // expression
func {path expression};
The proceeding path expression must point to a function