rust iterate over 2 elements in vector code example
Example: iterate over vector rust
//Here, value is mutably borrowed but you might
//want to take it by value or normal reference
for &value in vector {
//Do your stuff
}
//Here, value is mutably borrowed but you might
//want to take it by value or normal reference
for &value in vector {
//Do your stuff
}