Is there a way to implement Index/IndexMut on a Vec<Cell<f32>>

Yes. That's why Cell allows you to get a copy, but not a shared reference to the inner value.

1 Like