Basic Collections
Dive into basic collections in Rust, such as arrays and vectors, enabling you to store and manipulate data effectively.
We'll cover the following
In Rust, the term collection typically refers to data structures that can store multiple values. Collections provide a way to organize and manipulate groups of data. Rust has several built-in collection types, each with its own characteristics and use cases. In this lesson, we’ll work with vectors. Vectors are dynamic arrays that can grow or shrink in size.
Now that we’ve how collections can be initialized and populated, let’s have a look at how we can perform operations on the collections, such as iterating over them and making use of the individual elements.
Get hands-on with 1400+ tech skills courses.