batch-impl 0.7.1

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
14
15
16
Documentation placeholder for the open-extension protocol.

A `#name(args){body}` whose `name` is not a built-in directive expands to
a call of a user-defined function-like macro of the same name, handed the
args, body and trait definition:
`#my_ext(x){y}` → `{ my_ext!{ (x) {y} trait_def } }`.

```
# use batch_impl::batch_impl;
macro_rules! my_ext { ($($rest:tt)*) => {}; }
#[batch_impl(Box<u32> #my_ext(x){y})]
trait O {}
# fn main() {}
```

**Documentation marker only — never call this function.**