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
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to