Enumerate vector

Rust

#![allow(unused)]
fn main() {
for (i, element) in vector.iter().enumerate() {
}
}

Python

for i, element in vector:
    ...