Skip to main content

clone_slice

Function clone_slice 

Source
pub fn clone_slice<T>(slice: &[T]) -> Box<[T]>
where T: Clone,
Expand description

Clones every element of the given slice and returns an owned pointer to the copy.