Macro eco_vec
macro_rules! eco_vec {
() => { ... };
($elem:expr; $n:expr) => { ... };
($($value:expr),+ $(,)?) => { ... };
}
Expand description
Create a new EcoVec
with the given elements.
assert_eq!(eco_vec![1; 4], [1; 4]);
assert_eq!(eco_vec![1, 2, 3], [1, 2, 3]);