Build a Todo List App with Structs, Vectors & Methods - Rust by Examples #5:

36views
1likes
0
6:36
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Learn Rust by building a complete in-memory todo list application! In this hands-on tutorial, you'll master structs, vectors, and impl blocks while creating a fully functional CLI app. 🦀 What You'll Build: A command-line todo list with add, list, complete, and delete functionality. 📚 What You'll Learn: • Structs - Group related data with named fields (id, title, completed) • Vectors - Dynamic arrays that grow as you add items • impl blocks - Add methods to your structs (new, add, list, complete, delete) • Pattern matching - Handle user input with match expressions • std::io - Read user input from the terminal ⏱️ Timestamps: 0:00 - Introduction 0:15 - Creating the project with cargo new 0:42 - Understanding structs in Rust 0:57 - Building our Todo struct 1:49 - Using vectors for multiple todos 2:49 - Adding methods with impl blocks 4:04 - Implementing the full CRUD operations 5:10 - Interactive menu demo 6:20 - Recap & next steps 💻 Code along with me! All code is typed in nvim so you can follow step-by-step. 🔗 Resources: • Rust Book - Structs: https://doc.rust-lang.org/book/ch05-00-structs.html • Rust Book - Vectors: https://doc.rust-lang.org/book/ch08-01-vectors.html • Rust Book - Methods: https://doc.rust-lang.org/book/ch05-03-method-syntax.html 📺 Rust by Examples Series: #1 Hello Cargo - Project setup #2 CLI Calculator - Functions & input #3 Guessing Game - Random numbers & loops #4 Temperature Converter - Pattern matching #5 Todo List - Structs, vectors & methods (this video) #6 Coming soon: File persistence! 👍 Like & Subscribe for more Rust tutorials! #rust #rustlang #programming #tutorial #coding #learnrust #todoapp #structs #vectors
Back to tutorials

Duration

6:36

Published

January 11, 2026

Added to Codegiz

March 15, 2026

Open in YouTube