feat: trait_variant::make supports rewriting of the original trait.#27
feat: trait_variant::make supports rewriting of the original trait.#27tmandry merged 2 commits intorust-lang:mainfrom
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.