Module reuse_vec

Module reuse_vec 

Source

Functionsยง

reuse_vec
Re-uses the memory for a vec while clearing it. Allows casting the type of the vec at the same time. The stdlib specializes collect() to re-use the memory.