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
12
13
14
15
16
// Error: the trailing identifier of the `#[batch_impl_only]` path prefix does not match the
// local dummy trait name.
// The last segment of path prefix `#ext::traits::Other:` is `Other`, which differs from the
// trait name `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() {}