To create a new vector from a slice: slice.to_vec();. It works for fixed-size arrays too. Confusingly, you won't find that method on std::slice ...
確定! 回上一頁