heapless
heapless copied to clipboard
Feature request create a vec macro
I was wondering if you could make a vec macro that is similar to the one in the standard lib.
If you're looking to make vector initialization from arrays a one-liner and avoid extra copies, one soluton could be if we implement From<[T; M]> for Vec<T, N>
where N >= M
.
let v: Vec<u8, 8> = [0, 1, 2, 3].into(); // capacity=8, length=4