[][src]Attribute Macro macro_macro::macro_macro

#[macro_macro]

Apply macros from a template

The NAME must be declared via macro_template.

Examples

use macro_macro::{macro_macro, macro_template};

macro_template!(NAME = {
    struct __ { }
});

#[macro_macro(NAME)]
struct Structure {
    // ...
}

fn main() {
  // ...
}