commit | 12e1d75f5aa5eb038c25af741a1ee50796594b9c | [log] [tgz] |
---|---|---|
author | bluss <bluss@users.noreply.github.com> | Sat Oct 14 11:55:45 2017 +0200 |
committer | bluss <bluss@users.noreply.github.com> | Sat Oct 14 12:00:14 2017 +0200 |
tree | 9d51f2b0bb5d039e9ddc3f5c73c2adc0f40f02c5 | |
parent | bdc75466b28096b62d1d6721c5cb3c09fd5f3f7a [diff] |
MAINT: Clean up the trait template and delegation macros We use a nice trick here to simplify these macros: use `self` receivers by default (used by most traits) and support `self: &Self` and similar for the other receiver modes. This makes it possible to cover all methods with the same case in the macro. Also improve code comments a bit.