rust-av
rust-av copied to clipboard
Struct inheritance
While there is traits inheritance and traits defaults, there is no easy mean specialize a struct in a nice way.
See https://github.com/rust-lang/rfcs/issues/349
Looks like it is needed by other projects as well https://github.com/servo/servo/issues/2853
Do you know where this is tracked? All serious discussions about "specialization" I saw were not about inheritance: https://github.com/rust-lang/rfcs/pull/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: https://github.com/rust-lang/rfcs/pull/1546
Is this issue still relevant for rust-av
?