Memory layout of structs with mutable fields

That’s because of mutability of each individual array element - you should be able to change it by its pointer. You can look here for mutability and contigious arrays: Make immutable mutable again - or make arrays of structures stack-allocated