Tue Feb 17 18:09:06 EST 2015
Moving Vec out of mutable borrowed object.
18:07 < doelie> Hi. I have Vec living inside a borrowed mutable
object. I'd like to move this vec somewhere and
replace it with a new one. Rust doesn't let me move
it because owner is borrowed. Is there a way to "copy
and empty" into a new vector without actually copying
18:07 <@kmc> doelie: mem::replace
18:07 < doelie> thanks!