Closed
Description
We need to find a way to implement Clone for Box<[T]>
where T: Clone
.
In user code, "cloning" such a box manually is simple: .to_vec().into_boxed_slice()
will do it with a short roundtrip through Vec<T>
which should be unproblematic.
In the rust distribution, we can't impl Clone easily since the tools to do so are in libcollections but the Box type lives in liballoc.
Metadata
Metadata
Assignees
Labels
No labels