Macro petgraph::visit::macros::trait_template
source ยท macro_rules! trait_template { ($(#[$doc:meta])* pub trait $name:ident $($methods:tt)*) => { ... }; }
Expand description
Define a trait as usual, and a macro that can be used to instantiate implementations of it.
There must be section markers in the trait defition: @section type for associated types @section self for methods @section nodelegate for arbitrary tail that is not forwarded.