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 bare splat as a where-predicate subject has no defined semantics
// (`*(A,B): Trait` would expand to `A, B: Trait` — a predicate is a
// constraint, not a parameter list). The macro rejects it with a clear
// message; wrap in a tuple (`(*(A,B)): Trait`) or write separate
// predicates.
#[batch_impl(u8 where{*(A, B): Clone})]
trait WhereSplatBad {}

fn main() {}