chris-morgan / mopa

MOPA: My Own Personal Any. A macro to implement all the `Any` methods on your own trait.
Other
112 stars 9 forks source link

Add the ability to use generic constraints #7

Open Limeth opened 8 years ago

Limeth commented 8 years ago

This is an improvement of PR #4. You can now do the following:

mopafy!(Constrained<X, F: Float, D: Deep<F>>);

I had to rename mopafy!(..., only core) to mopafy_only_core!(...) and add a dependency to rust-parse-generics.