That makes sense. Thanks.

On Tue, Aug 19, 2014 at 3:43 PM, Patrick Walton <pcwal...@mozilla.com>
wrote:

> 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

Reply via email to