Rust for Beginners: Ownership, Structs, Error Handling and a CLI Project
A ten-part, project-based introduction to Rust that grows a study-session tracker from a first program into a tested command-line tool. It covers ownership and borrowing, structs and enums, collections, error handling and file parsing, then traits, iterators, modules, tests and basic concurrency. It suits programmers or motivated newcomers who want a structured path through core Rust.
- 10 lessons
- 5h 0m total
- Development
- English
- Earns YodaCoins
Curated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.
What You'll Learn
- Create, run and test a Cargo project, using Rust's basic types, functions, conditions and loops
- Explain moves, copies, shared and mutable references, and slices, and fix ownership errors in your own code
- Model data with structs, methods, enums and Option, and cover every case with match
- Store and group data with vectors, strings (UTF-8) and HashMap while borrowing correctly during iteration
- Handle failure with Result, input parsing, file reading and the ? operator, and check both valid and invalid inputs
- Write generic functions, traits and closures, and build iterator pipelines
- Organize code into a library and binary with modules, write unit and integration tests, and build a tested CLI with proper exit codes
Prerequisites
- No prior Rust experience needed
- Basic comfort using a terminal and a code editor
- Some general programming exposure is helpful but not required
Course Curriculum
10 lessons · 5h 0m- 01Part 1: Your First Rust Program30:01
- 02Part 2: Ownership, Borrowing and Slices30:01
- 03Part 3: Structs, Enums, Methods and Option30:01
- 04Part 4: Collections, UTF-8 Text and HashMap30:01
- 05Part 5: Errors, Parsing and File Handling30:01
- 06Part 6: Generics, Traits and Lifetimes30:01
- 07Part 7: Closures and Iterator Pipelines30:01
- 08Part 8: Modules, Interfaces and Tests30:01
- 09Part 9: Threads, Channels, Arc and Mutex30:01
- 10Part 10: Build and Test a Rust CLI30:01
About the Instructor
Rp Studio
YouTube creator
The lessons in this course were produced by Rp Studio and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Rp Studio is not affiliated with YodaHut.
Visit the channel on YouTubeMore in the Library: Development

SwiftUI Todo List App with MVVM for Beginners

SwiftUI & SwiftData: Build a Data-Driven iOS Vocabulary App

SwiftUI iOS Development for Beginners: Build a Quiz App

SwiftUI Bootcamp for Beginners: Build iOS Interfaces and App Logic

Rust for Beginners: Ownership, Structs, Error Handling and Projects
