pub trait Cast<T> { // Required method fn cast(self) -> T; }
Move the array into a vector. Compare to .to_vec(), the function doesn’t require Clone trait.
.to_vec()
Clone