I have a mutable reference of vector of mutable references of vectors I want to iterate over the vector and then change the value of its elements.
let mut a = vec![1, 2, 3];
let mut b = vec![4, 5, 6];
let mut c = vec![&mut a , &mut b];
let mut v = &mut c;
I want to iterate over v and do operations on its elements
preferably using an iterator and not by indexing.(I specifically want to iterate over a reference of a vector of references of vector and not just a 2d vector)
Or if you need the indices for the computation: