batch-impl 0.8.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
use batch_impl::batch_impl;

// segments driving one block must be equal-length (A len 2, B len 3)
#[batch_impl(
    ((u8, u16), (u32, u64, u128)) impl{((A@..,),(B@..,))}
    { fn n(&self) -> usize { @(@A::f() @B::g(),).. } }
)]
trait BadRepeatUnequal {
    fn n(&self) -> usize;
}

fn main() {}