I have a struct with a generic:
struct SomeStruct<const SOME_ARRAY_SIZE: usize> {
some_array: [i32; SOME_ARRAY_SIZE],
}
And I want to store an array of the struct in an array like this:
fn main() {
let some_array_of_some_struct: [/* What should I put here? */; 3] = [
SomeStruct<1> {
some_array: [8],
},
SomeStruct<2> {
some_array: [2, 6],
},
SomeStruct<3> {
some_array: [4, 5, 12],
},
];
}
How would I do this?