// Use "..=" to make inclusive both ends
let names = vec!["Bob", "Frank", "Ferris"];
//iter - Doesn't consume the collection
for name in names.iter() {
&"Ferris" => println!("There is a rustacean among us!"),
_ => println!("Hello {}", name),
//into_iter - COnsumes the collection
for name in names.into_iter() {
"Ferris" => println!("There is a rustacean among us!"),
_ => println!("Hello {}", name),
//iter_mut - This mutably borrows each element of the collection
for name in names.iter_mut() {
&mut "Ferris" => "There is a rustacean among us!",