You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The boxed slice can be converted back to a vector with <ahref="https://doc.rust-lang.org/std/primitive.slice.html#method.into_vec"><code>slice::into_vec</code></a>
1273
-
without any cloning or a reallocation.</p>
1272
+
<p>Alternatively, a boxed slice can be constructed directly from an iterator with
1273
+
<ahref="https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect"><code>Iterator::collect</code></a>, avoiding the need for any reallocation.</p>
<p>A boxed slice can be converted to a vector with <ahref="https://doc.rust-lang.org/std/primitive.slice.html#method.into_vec"><code>slice::into_vec</code></a> without any
<p>The boxed slice can be converted back to a vector with <ahref="https://doc.rust-lang.org/std/primitive.slice.html#method.into_vec"><code>slice::into_vec</code></a>
308
-
without any cloning or a reallocation.</p>
307
+
<p>Alternatively, a boxed slice can be constructed directly from an iterator with
308
+
<ahref="https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect"><code>Iterator::collect</code></a>, avoiding the need for any reallocation.</p>
<p>A boxed slice can be converted to a vector with <ahref="https://doc.rust-lang.org/std/primitive.slice.html#method.into_vec"><code>slice::into_vec</code></a> without any
0 commit comments