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