batch-impl 0.5.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
// 错误:`#[batch_impl_only]` 路径前缀末尾标识符与本地 dummy trait 名不一致。
// 路径前缀 `#ext::traits::Other:` 末段是 `Other`,与 trait 名 `MyTrait` 不同。
use batch_impl::batch_impl_only;

mod ext {
    pub mod traits {
        pub trait Other {}
    }
}

#[batch_impl_only(#ext::traits::Other: usize)]
trait MyTrait {}

fn main() {}