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