you’re literally mutating your struct so you need mutable struct.
in example.B, it’s different because .B still points to the same vector, you’re mutating the vector, not example itself.
you’re literally mutating your struct so you need mutable struct.
in example.B, it’s different because .B still points to the same vector, you’re mutating the vector, not example itself.