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
13
14
15
use batch_impl::batch_impl;

// `#` directives are banned on the ItemImpl entry.
#[batch_impl(W : u8 #tag{7})]
impl BadHash for W {
    fn tag(&self) -> u32 {
        7
    }
}

trait BadHash {
    fn tag(&self) -> u32;
}

fn main() {}