/src/collections/vec.rs.html#11-1691' title='goto source code'>[src]</a></span></h1>
<div class='docblock'><p>A growable list type with heap-allocated contents, written <code>Vec&lt;T&gt;</code> but
pronounced &#39;vector.&#39;</p>

<p>Vectors have <code>O(1)</code> indexing, amortized <code>O(1)</code> push (to the end) and
<code>O(1)</code> pop (from the end).</p>

<h1 id='examples' class='section-header'><a href='#examples'>Examples</a></h1>
<p>You can explicitly create a <code>Vec&lt;T&gt;</code> with <