On 6/16/14 7:32 AM, Sebastian Gesemann wrote:
Assuming this RFC is accepted: How would I have to implement Add for a
custom type T where moving doesn't make much sense and I'd rather use
immutable references to bind the operands?

You don't implement Add for those types.

The purpose of strongly-typed (as opposed to ad-hoc, like C++) traits is that you can actually tell what the type signature is.

Patrick

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

Reply via email to