title: How can I push an iterator to an existing vector (or any other collection)?
body: <p>Looking through the documentation or Rust 0.12, I saw <a href="https://doc.rust-lang.org/0.12.0/collections/vec/struct.Vec.html#method.push_all" rel="noreferrer">the following method</a> to push multiple values to an already existing <code>Vec</code>:</p>
  
  <pre><code>fn push_all(&amp;mut self, other: &amp;[T])
  </code></pre>
  
  <p>However, if I have an iterator, I don't think it is efficient to use: <code>vector.push_all(it.collect().as_ref())</code>. Is there a more efficient way?</p>