I was naively thinking I could do something like:
my_array.appendNTimesAssumeCapacity(MyStruct.init(allocator), 100);
But since I'm seeing some unexpected behaviour I now think it init's the struct once and then "shallow" copies it to all items (so if the struct has an array in it, they will all point to the same backing array).
Is that assumption correct? And if so is there a better way to fill the array, or should I resort to having to looping over each item?