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

Dmitry Romanov romanovda at gmail.com
Thu Jun 12 11:05:25 PDT 2014


Sorry, Im a little new to Rust, but I'm,as many, now considering moving
from c++ to Rust and the topic is really important for my tasks.

Could you give an Rust example for the concern listed above?

Thank you!
On Jun 12, 2014 9:51 PM, "Patrick Walton" <pcwalton at mozilla.com> wrote:

> On 6/12/14 10:46 AM, Tommi wrote:
>
>> `Copy` types aren't really relevant to a discussion about adding to
>> Rust the C++ like optimization of moving rvalues (of non-Copy types)
>> when they're passed to certain functions.
>>
>
> There's nothing to add to Rust. Rust supports moves.
>
> Patrick
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140612/8c6cbe8c/attachment.html>


More information about the Rust-dev mailing list