macro-template 0.1.0

Macro to generate repeated Rust code with table-driven inputs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use macro_template::template;

fn main() {
    template! {
        for [Ty, Width] in [
            (u16, 2),
        ] {
            let _: [Ty; Width];
        }
    }
}