The components updating the CroState currently need to juggle with indices to avoid borrowing two Molecules mutably at the same time, so we might want to look into replacing Vec with something that allows multiple mutable references to distinct indices. The current solution works, but is pretty unreadable.
The components updating the
CroState
currently need to juggle with indices to avoid borrowing twoMolecule
s mutably at the same time, so we might want to look into replacingVec
with something that allows multiple mutable references to distinct indices. The current solution works, but is pretty unreadable.