Check out example codes for "iterate over vector rust". It will help you in understanding the concepts better.

Code Example 1

//Here, value is mutably borrowed but you might
//want to take it by value or normal reference
for &value in vector {
	//Do your stuff
}

Learn ReactJs, React Native from akashmittal.com