Skip to content

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

Open
lu-zero opened this issue Feb 21, 2016 · 5 comments
Open

Struct inheritance #3

lu-zero opened this issue Feb 21, 2016 · 5 comments

Comments

@lu-zero
Copy link
Member

lu-zero commented Feb 21, 2016

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

@lu-zero
Copy link
Member Author

lu-zero commented Feb 27, 2016

Looks like it is needed by other projects as well servo/servo#2853

@sdroege
Copy link

sdroege commented Aug 16, 2016

Do you know where this is tracked? All serious discussions about "specialization" I saw were not about inheritance: rust-lang/rfcs#1210

@lu-zero
Copy link
Member Author

lu-zero commented Aug 16, 2016

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.

@lu-zero
Copy link
Member Author

lu-zero commented Sep 14, 2016

Another interesting rfc vaguely related to the topic: rust-lang/rfcs#1546

Arzte pushed a commit to Arzte/rust-av that referenced this issue Feb 3, 2018
@Luni-4
Copy link
Member

Luni-4 commented Jul 14, 2020

Is this issue still relevant for rust-av?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants