Skip to main content

2 docs tagged with "vector"

View all tags

Project: To-Do List

To wrap up our series on collections, we're going to build one more project: a simple command-line to-do list application. This project will primarily use a Vec to store the to-do items and will allow the user to add items, list items, and mark items as complete.

Vectors (`Vec<T>`): The Growable Array

Welcome to our fifth series! Now that you have a solid understanding of Rust's basic data types and control flow, it's time to dive into collections. Collections are data structures that can contain multiple values. Unlike the array and tuple types we've seen before, some collection types can grow or shrink in size.