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
use macro_template::template;

fn main() {
    template! {
        for Ty in [u8],
        for Ty in [u16] {
            let _ = stringify!(Ty);
        }
    }
}