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
use batch_impl::{batch_impl, batch_preprocess_test};

// A top-level `{! ...}` block (the `#cmd` open-extension product) must be
// the last block — a following `{...}` body errors.
#[batch_impl(usize #batch_preprocess_test(add,inc){*self+1} {fn other() {}})]
trait BadChain {
    fn add(&self) -> Self;
    fn inc(&self) -> Self;
}

fn main() {}