Rust’s standard library includes a number of very useful data structures called collections.

Unlike the built-in array and tuple types, the data these collections point to is stored on the heap, which means the amount of data does not need to be known at compile time and can grow or shrink as the program runs.

To learn about the other kinds of collections provided by the standard library, see the documentation.



**Storing Lists of Values with Vectors(**API documentation)

Creating a New Vector

let v: Vec<i32> = Vec::new();

    let v = vec![1, 2, 3];