-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools
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
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools