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 `#blanket` directive.

`#blanket(args){wrapper list}` implements the trait for every wrapper
around a fresh generic `T`, delegating each method by deref. Wrappers may
carry a `:N` deref-depth annotation and a `where{...}` predicate; a
wrapper whose main part contains `@0` treats `@0` as T's position
(`(u32, @0)` → `(u32, T)`), otherwise it is applied as `wrapper^T`.

```
# use batch_impl::batch_impl;
#[batch_impl(#blanket(@all_methods){Box})]
trait B { fn tag(&self) -> u32; }
# fn main() {}
```

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