macro_rules! arr { ($T:ty; $(,)*) => { ... }; ($T:ty; $($x:expr),* $(,)*) => { ... }; ($($x:expr,)+) => { ... }; () => { ... }; }
Expand description
Macro allowing for easy generation of Generic Arrays.
Example: let test = arr![u32; 1, 2, 3];
macro_rules! arr { ($T:ty; $(,)*) => { ... }; ($T:ty; $($x:expr),* $(,)*) => { ... }; ($($x:expr,)+) => { ... }; () => { ... }; }
Macro allowing for easy generation of Generic Arrays.
Example: let test = arr![u32; 1, 2, 3];