Erstellen und bevölkern Sie einen 2D -Vektor

// Create and populate a 2d vector
fn main() {
    // Two dimensional vector
    let mut v5:Vec<Vec<usize>> = Vec::new();
    let last = 5;
    for i in 0..last {
        v5.push(vec![]);
        for j in 0..last {
            v5[i].push(j);
        }
    }
    println!("{:?}",v5);
}
Mackerel