Is there a better way to making a 2d vector than this?

you could implement the Index trait fot get the elements:

1 Like