batch-impl 0.5.6

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
// 一个正常编译通过的 pass case:用于确保 trybuild 的 pass 路径不空。
use batch_impl::batch_impl;

#[batch_impl(usize, isize)]
trait Numeric {}

#[test]
fn numeric_for_usize_and_isize() {
    fn check<T: Numeric>(_: &T) {}
    check(&0usize);
    check(&0isize);
}

fn main() {}