3 ms·
I have also felt the need multiple times. Especially when passing a number of things to a function, and you need to pass ownership. You can't do that with a sl
by GolDDranks 6y ago
I have also felt the need multiple times.
Especially when passing a number of things to a function, and you need to pass ownership. You can't do that with a slice, because that's borrowed, so a Vec used to be the only option. Now there's a one option more that's going to be more lightweight than allocating a Vec :)
- oconnor663 6y agoI've often used the `arrayvec` crate for things like this. Actually one of the things I'm most excited about, once const generics is ready, is seeing something like `arrayvec` in the standard library.