Macros for concatenating const arrays.
To add to your Cargo.toml:
toml
array-concat = "0.2.0"
```rust use array_concat::*;
const A: [u32; 3] = [1, 2, 3]; const B: [u32; 2] = [4, 5]; const C: [u32; concatarrayssize!(A, B)] = concatarraysconst!(u32; A, B; u32::MIN); // compiles
// Non-Copy struct struct S {} const D: [S; 1] = [S{}]; const E: [S; 1] = [S{}]; const F: [S; concatarrayssize!(D, E)] = concatarraysconst!(S; D, E; S{}); // doesn't compile
fn main() {
let c = concatarrays!(u32; A, B; u32::MIN);
asserteq!(C[..], A.iter().chain(&B).copied().collect::