Iris indeks adalah tipe rust USIZE

// note: slice indices are of type `usize`

let numbers: Vec<i32> = vec!(1,2,3,4);

// Use the operator "as usize" to index inside a for loop or similar.
for i in 0..4 {
	println!("{}", numbers[i as usize]);
}
Muddy Mongoose