On 8/19/14 1:39 PM, Evan G wrote:
Is there a way to capture some variables by-value, and others by-reference? The 'ref' syntax you talked about seemed to be only for the whole argument list, but I might have misunderstood.
If you need more fine-grained control, you can create references explicitly outside the closure, and capture those by-value along with the other values you'd like to capture by value.
Patrick _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev