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

// A static method returning `Self` cannot be blanket-delegated: `t::new()`
// returns the inner type, not the wrapper's `Self`. Guided error instead of
// rustc's E0308 mismatched types at the generated impl.
#[batch_impl(#blanket(@all_static_methods){Box})]
trait NewT {
    fn new() -> Self;
}

fn main() {}