macro_rules! gvec {
    ($expr : expr ; $n : expr) => { ... };
    ($($expr : expr), *) => { ... };
}
Expand description

Create a new generic vector

Because this can create any generic vector, you will likely need to add some type annotations when you use it,

let x: ArrayVec<i32, 4> = gvec![1, 2, 3, 4];
assert_eq!(x, [1, 2, 3, 4]);