batch-impl 0.7.2

A proc-macro library for batch generating trait impls with a powerful DSL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use batch_impl::batch_impl;

// A `{! ...}` block followed by a `{...}` block is illegal — the top-level
// macro form must be the last block. Under the current block order the chain
// may take the top-level path (the nonexistent macro then errors at rustc)
// or walk_top_level's "must be the last block" path — either way the writing
// must not compile.
#[batch_impl(u32 {! my_macro!{}} {fn other() {}})]
trait BadChain {
    fn add(&self) -> Self;
}

fn main() {}