rust fill vector with range code example Example: rust fill vector with range let mut vec: Vec<u32> = (0..10).collect();