On Mon, Nov 11, 2013 at 03:48:37PM +0100, spir wrote:
> Also, what does
>       let y = x;
> mean in Rust if x's type is constant (as opposed to a generic type
> var)? Does it depend on the exact type? and specifically what happens
> in the case of simple, atomic, type?

The meaning is:

- shallow copy the data from x into y;
- if x has a type that cannot be copied (e.g., `~T`), invalidate x
  so that it can no longer be used ("move").


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

Reply via email to