rust-av icon indicating copy to clipboard operation
rust-av copied to clipboard

Struct inheritance

Open lu-zero opened this issue 9 years ago • 5 comments

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

lu-zero avatar Feb 21 '16 13:02 lu-zero

Looks like it is needed by other projects as well https://github.com/servo/servo/issues/2853

lu-zero avatar Feb 27 '16 10:02 lu-zero

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

sdroege avatar Aug 16 '16 15:08 sdroege

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 avatar Aug 16 '16 15:08 lu-zero

Another interesting rfc vaguely related to the topic: https://github.com/rust-lang/rfcs/pull/1546

lu-zero avatar Sep 14 '16 11:09 lu-zero

Is this issue still relevant for rust-av?

Luni-4 avatar Jul 14 '20 10:07 Luni-4