product

Macro product 

Source
product!() { /* proc-macro */ }
Expand description

Macro doing product expansions.

Productions are defined using the syntax.

ยงExample

Define 3 tuple structures each with a single i32 field and use them:

product! {
    struct $((Foo)(Bar)(Baz)) (i32);
}

let _a = Foo(1);
let _b = Bar(2);
let _c = Baz(3);