Module std::vec
Storing Lists of Values with Vectors
The first collection type we’ll look at is Vec
Creating a New Vector
To create a new, empty vector, we can call the Vec::new function,
fn main() { let v: Vec<i32> = Vec::new(); }
The first collection type we’ll look at is Vec
To create a new, empty vector, we can call the Vec::new function,
fn main() { let v: Vec<i32> = Vec::new(); }