On 24 October 2013 16:23, Corey Richardson <[email protected]> wrote: > It's not necessary for U because there are no clones here, only moves.
Thanks, I missed the difference between move and copy here. I wonder is it possible to avoid any move at all? In C++ a push-like method can allocates storage and then it is used to store the result of the function call, like in *accumulator.raw_push() = function(element). But I guess Rust type system does not have a notion of raw storage that can only be used to write things to. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
