-
Notifications
You must be signed in to change notification settings - Fork 40
Struct inheritance #3
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
Comments
Looks like it is needed by other projects as well servo/servo#2853 |
Do you know where this is tracked? All serious discussions about "specialization" I saw were not about inheritance: rust-lang/rfcs#1210 |
Sadly not. The workaround is to leverage enums as much as possible and mostly works. I try to keep the language limit issues open since probably they'll come up with an easier solution. |
Another interesting rfc vaguely related to the topic: rust-lang/rfcs#1546 |
Is this issue still relevant for |
While there is traits inheritance and traits defaults, there is no easy mean specialize a struct in a nice way.
See rust-lang/rfcs#349
The text was updated successfully, but these errors were encountered: