[rust-dev] Implementation inheritance or mixins

Michael Neumann mneumann at ntecs.de
Tue Dec 25 13:50:02 PST 2012


Am 25.12.2012 20:43, schrieb Lucian Branescu:
>
> Traits are basically what you want here. You can have a trait with the 
> emit method and implement it on both structs.
>

Thanks. I'll try that. It's a new concept to me :).

Michael


More information about the Rust-dev mailing list