Cannot index into a value of type Foo

Is there a way to add index functionality of a Struct?

Can you provide any context?

Implement Index and optionally IndexMut.

3 Likes