How do I get a slice of a Vec<T> in Rust?
<p>I can not find within the documentation of <code>Vec&lt;T&gt;</code> how to retrieve a slice from  a specified range.</p>

<p>Is there something like this in the standard library:</p>

<pre><code>let a = vec![1, 2, 3, 4];
let suba = a.subvector(0, 2); // Contains [1, 2];
</code></pre>