Closed bluss closed 8 years ago
This seems really nice. I remember trying to achieve something like this but failing---maybe I got too caught up on missing the pattern support. I suppose that's less important now, since we have lots of arity impls on Testable
now, reducing the need for using tuples as a hack.
Getting rid of those fn
casts is glorious.
This macro reduces boilerplate (and removes the need for the compiler plugin). It could be a nice thing to include into the crate.
Limitations:
mut
on arguments.Sample usage:
implementation: