macro_rules! mini_vec {
() => { ... };
($elem:expr; $n:expr) => { ... };
($($x:expr),+ $(,)?) => { ... };
}
Expand description
mini_vec!
is a macro similar in spirit to the stdlib’s vec!
.
It supports the creation of MiniVec
with:
mini_vec!()
mini_vec![val1, val2, val3, ...]
mini_vec![val; num_elems]