Home›Library›Development

Curated Library

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
Lessons byRp Studio on YouTube

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.

10 lessons5h 0m total
One block per lesson, sized by its length

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

About the Instructor

Rp Studio

YouTube creator

10 lessons here 5h 0m

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 YouTube

More in the Library: Development