Closed
Description
Location
Vec::into_boxed_slice
impl From<Vec<T>> for Box<[T]>
Summary
impl From<Vec<T>> for Box<[T]>
says:
If v has excess capacity, its items will be moved into a newly-allocated buffer with exactly the right capacity.
When Vec::into_boxed_slice
does not:
Note that this will drop any excess capacity.
Despite the fact that impl From<Vec<T>> for Box<[T]>
uses Vec::into_boxed_slice
inside