[rust-dev] &self/&mut self in traits considered harmful(?)

Patrick Walton pcwalton at mozilla.com
Thu Jun 12 09:07:45 PDT 2014


On 6/11/14 7:17 AM, Huon Wilson wrote:
> On 11/06/14 23:27, SiegeLord wrote:
>> Aside from somewhat more complicated impl's, are there any downsides
>> to never using anything but by value 'self' in traits?
>
> Currently trait objects do not support `self` methods (#10672)

We'll have to fix this for unboxed closures, so it's a 1.0 thing.

Patrick


More information about the Rust-dev mailing list