On 11/12/13 5:16 AM, Oren Ben-Kiki wrote:
I googled around and this has been asked before several times; there are
answers that use obsolete syntax and Rust concepts, so I thought it
might be a good idea to revisit the issue.

The basic use case is having some trait, and having some (base/mixin)
struct implementing it. Now, one wants to have a 2nd (derived/importing)
struct implementing the trait, based on the 1st struct implementation
(including its data members).

There are proposals for this, if I understand you correctly. This is needed in Servo.

http://smallcultfollowing.com/babysteps/blog/2013/10/24/single-inheritance/

Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to