-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: trait_variant::make supports rewriting of the original trait. #27
Conversation
I think this could be made more flexible by doing something like: #[trait_variant::rewrite(Send + Sync)]
pub trait SomeTrait {
...
} |
I see there's demand for this, but I too am in favor of something that more closely resembles the shape of the |
a50cd80
to
3b2c682
Compare
I think it also closes my issue #29 |
Thanks @sargarass, the implementation looks good. As for the name, on Zulip @Jules-Bertholet suggested |
would this also allow adding annotations on the trait generated by make? |
@tmandry, Hmm, as for naming, I think that |
The other suggestion by @traviscross was to allow When I get back from vacation next week I'll work on merging one of these two, unless someone else gets to it first. |
@tmandry well... |
Over in #30 I've implemented it using the Given the ongoing discussion about choosing an alternate name for a different macro, I've become less ambivalent and probably would prefer to just solve this use case with |
@traviscross Now we both made the same work :D |
As for the entire concept, I do support this idea |
Is it planned to have this in a new release soon? |
Hello, this PR should close the issue #18.