Learn to Code with Rust

Master the Rust programming language from A-Z. Includes projects, quizzes, and more. Beginners welcome!

  • 0.0 (0 Reviews)
  • 0 Students
  • 536 Lessons
  • Boris Paskhaver

Course Overview

Learn to Code with Rust is a comprehensive introduction to programming in Rust, one of the fastest-growing programming languages in the world. Rust powers codebases in companies and products like Amazon, Microsoft, Firefox, Discord, and more. It is used in a variety of disciplines including web development, CLI programs, build tools, and databases.

Over more than 70 hours of video content, we'll tackle the language from A to Z, covering everything you need to know about Rust to be an effective developer.

The course is jam-packed with:

  • 70+ hours of video, with new content added frequently

  • Multiple-choice quizzes

  • Coding challenges and projects

  • Section reviews

Learn to Code with Rust is designed from the ground up to take you from novice to professional. Complete beginners are welcome; no prior experience is needed!  Over 500+ videos, we'll work our way from language fundamentals to advanced features. Topics covered include:

  • Setup & Installation

  • Variables

  • Data types

  • Functions and Methods

  • Control Flow

  • Ownership and References

  • Slices

  • Structs

  • Enums

  • Generics

  • Option and Result Enums

  • Vectors

  • Project Structure

  • Strings

  • Hash Haps

  • Error Handling

  • Traits

  • Lifetimes

  • Closures

  • Iterators

  • Testing

  • Randomness

  • Datetimes

  • Trait Objects

  • Smart Pointers (Box, Rc, RefCell, OnceCell, LazyCell)

...and more!

Throughout the entire journey, I'll be coding alongside you step by step in the code editor. You'll also be able to test your knowledge through numerous coding challenges, quizzes, and written assignments.

Rust is known to be a challenging language to learn. For many concepts, I had to browse through different books, articles, and videos to understand what was happening. My hope here is to demystify the concepts and make it easier for new students to learn the language.

Thanks for checking out the course!

See more

FAQ

FAQ area empty

Course curriculum

28 chương 536 bài học 70 giờ 8 phút 7 bài học thử miễn phí
Chương 1 Getting Started
Chương 2 Variables and Mutability
  • Open Variables and Mutability Project
  • Intro to Variables 9:58
  • Interpolation with Curly Braces 9:32
  • Positional Arguments to println! 3:37
  • Underscore with Variables 2:25
  • Immutable and Mutable Variables 4:58
  • Rust Error Codes Index 3:32
  • Variable Shadowing 7:56
  • Scopes 8:46
  • Constants 7:10
  • Type Aliases 4:18
  • Compiler Directives 7:32
  • Project
  • Project Solution 9:42
  • Quiz
  • Section Review 9:18
Chương 3 Data Types
  • Open Data Types Project
  • Intro to Data Types 13:36
  • Integers 8:00
  • Using _ as Visual Separator for Numbers 1:32
  • The usize and isize Types 2:30
  • Strings and Raw Strings 10:00
  • Intro to Methods 8:56
  • Floating Point Types 6:37
  • Formatting Floats with Format Specifier 3:33
  • Casting Types with the as Keyword 4:01
  • Math Operations 5:41
  • Augmented Assignment Operator 6:06
  • Intro to Booleans 6:20
  • Boolean Inversion with ! 4:22
  • Equality and Inequality Operators 8:11
  • And Logic with && 4:33
  • Or Logic with || 5:48
  • The Character Type 7:51
  • The Array Type 9:03
  • Reading and Writing Array Elements 7:57
  • The Display Trait 9:48
  • The Debug Trait 6:15
  • The dbg! Macro 4:31
  • The Tuple Type 6:56
  • Ranges and Range Iteration 8:54
  • Intro to Generics 11:40
  • Project
  • Project Solution 9:12
  • Quiz
  • Section Review 18:27
Chương 4 Functions
  • Open Functions Project
  • Intro to Functions 6:14
  • Parameters and Arguments 7:25
  • Explicit Return Values 5:30
  • Implicit Return Values 2:08
  • The Unit as a Return Type 3:18
  • Blocks in Functions 5:25
  • Project
  • Project Solution 14:21
  • Quiz
  • Section Review 5:27
Chương 5 Control Flow
  • Open Control Flow Project
  • The if Statement 6:45
  • The else if Statement 7:50
  • The else Statement 3:17
  • Assigning Result of if Statement to Variable 5:34
  • The match Statement 10:08
  • Underscore in a Match Arm 9:13
  • The match Statement with Multiple Values and Conditionals 10:24
  • The loop and break Keywords 8:49
  • The continue Keyword 5:56
  • While Loop 5:30
  • Recursion 12:06
  • Debugging in VSCode I 16:47
  • Debugging in VSCode II 4:12
  • Debugging in VSCode III 10:23
  • Project
  • Project Solution 26:30
  • Quiz
  • Section Review 7:34
Chương 6 Ownership
  • Open Ownership Project
  • Intro to Ownership 13:32
  • The Stack and Heap 11:29
  • Scope and Ownership 7:10
  • The Copy Trait 5:10
  • The String Type 7:48
  • The push_str Method on a String Type 8:01
  • Moves and Ownership 8:59
  • The drop Function 3:06
  • The clone Method 3:44
  • References and Borrowing 11:25
  • The Dereference Operator 5:27
  • String, &String, str, and &str 6:54
  • The Copy Trait with References 3:23
  • Ownership and Function Parameters 7:24
  • Mutable Parameters 8:22
  • Return Values I 4:33
  • Return Values II 6:21
  • Project
  • Project Solution 10:31
  • Quiz
  • Section Review 13:21
Chương 7 References and Borrowing
  • Open Ownership Project
  • Immutable and Mutable Reference Parameters 8:38
  • Multiple Immutable References 6:29
  • Mutable Reference Restrictions 10:30
  • Ownership with Immutable and Mutable References 5:37
  • Dangling References 6:52
  • Ownership with Arrays and Tuples 8:49
  • Project
  • Project Solution 10:13
  • Quiz
  • Section Review 8:07
Chương 8 Slices
  • Open Slices Project
  • Intro to Slices 3:29
  • Create a String Slice from a String 7:40
  • String Slices and String Literals 7:28
  • String Slice Lengths 5:40
  • Syntactic Shortcuts 5:36
  • String Slices as Function Parameters 5:52
  • Array Slices 7:19
  • Deref Coercion with Array Slices 6:27
  • Mutable Array Slices 6:41
  • Project
  • Project Solution 11:52
  • Quiz
  • Section Review 6:03
Chương 9 Structs
  • Open Structs Project
  • Define a Struct 8:39
  • Create a Struct Instance 3:23
  • Access Struct Fields 7:51
  • Overwrite Struct Fields 4:39
  • Create Structs in a Function 8:35
  • Struct Field Initialization Shorthand Syntax 3:42
  • Struct Update Syntax 8:59
  • Passing Structs into a Function 12:56
  • Deriving Debug Trait for Struct 6:35
  • Defining Struct Methods 18:59
  • Self Parameter as Mutable Struct Instance 6:45
  • Self Parameter as Immutable and Mutable References to Struct Instance 9:40
  • Methods with Multiple Parameters 8:10
  • Calling Methods from Other Methods 4:15
  • Associated Functions 8:29
  • Multiple impl Blocks 2:39
  • Builder Pattern 12:16
  • Tuple Structs 10:52
  • Unit-Like Structs 2:34
  • Project
  • Project Solution 17:02
  • Quiz
  • Section Review 14:36
Chương 10 Enums
  • Open Enums Project
  • Intro to Enums 10:07
  • Enum with Associated Values I 8:41
  • Enum with Associated Values II 3:40
  • A Brief Discussion on Enum Memory 3:49
  • Struct Variants 10:23
  • Nesting Enums in Enums 6:38
  • The match Keyword I 10:06
  • The match Keyword II 4:05
  • The match Keyword III 9:04
  • Defining Methods on Enums 7:41
  • The match Keyword IV - Catching Multiple Values 7:36
  • The match Keyword V - match with Exact Value 7:30
  • The if let Construct 9:20
  • The let else Construct 9:03
  • Project
  • Project Solution 12:05
  • Quiz
  • Section Review 7:15
Chương 11 Generics
  • Open Generics Project
  • Intro to Generics 17:46
  • The Turbofish Operator 3:20
  • Multiple Generics 7:43
  • Generics in Structs 6:23
  • Generics and impl Blocks I 9:59
  • Generics and impl Blocks II 7:18
  • Generics in Enums 7:53
  • Project
  • Project Solution 11:56
  • Quiz
  • Section Review 5:24
Chương 12 Option and Result Enums
  • Open Option and Result Enums Project
  • The Option Enum 8:28
  • Real Example of Option Enum (The get Method on an Array) 8:17
  • The unwrap and expect Methods 6:23
  • The match Keyword with Option Enum 8:51
  • Returning an Option Enum from a Function 10:05
  • Top-Level Option Variants 3:23
  • The unwrap_or Method 5:08
  • Building Option from Scratch 11:36
  • The Result Enum 7:41
  • Real Example of Result Enum (The parse Method on a string) 5:25
  • Returning a Result Enum from a Function 8:56
  • Result Methods 4:50
  • Nuances of unwrap Method on Result 13:41
  • The while let Construct 5:29
  • Project
  • Project Solution 15:17
  • Quiz
  • Section Review 6:05
Chương 13 Vectors
  • Open Vectors Project
  • Create a Vector 10:19
  • Adding and Removing Elements 7:44
  • Reading Vector Elements 11:44
  • The get Method 4:35
  • Ownership with Vectors 9:19
  • Writing Vector Elements 6:36
  • Vector Capacity Behind the Scenes 7:11
  • Project
  • Project Solution 15:21
  • Quiz
  • Section Review 8:13
Chương 14 Project Structure
  • Open Warehouse Project
  • Packages and Crates 8:36
  • Intro to Modules 5:47
  • The pub Keyword 5:23
  • The Benefit of Namespaces 2:30
  • Module as File 9:15
  • Module as Folder 5:28
  • Module Ambiguity 3:05
  • Public Enums, Public Structs, and Public Fields 10:14
  • Submodules 11:39
  • The crate Prefix 7:03
  • The use Keyword I 5:41
  • The use Keyword II (Name Conflicts) 3:33
  • The self Keyword 3:39
  • The super Keyword 9:16
  • Create Aliases with the as Keyword 3:52
  • Using pub use to Export Names from Submodules 5:23
  • External Crates 10:20
  • The Standard Library 5:08
  • The Glob Operator 6:30
  • Create Library Crate 8:51
  • Multiple Binary Crates 9:01
  • Documentation Comments 8:53
  • Bonus - Walking through Sample Module Structure 8:05
  • Project
  • Project Solution 26:46
  • Quiz
  • Section Review 16:56
Chương 15 Strings
  • Open Strings Project
  • Review of Strings 9:17
  • Concatenation 11:21
  • The format! Macro 3:49
  • Common String Methods (trim, casing, replace, split) 9:46
  • Collecting User Input with read_line Method 14:36
  • Project
  • Project Solution 17:09
  • Quiz
  • Section Review 9:43
Chương 16 HashMaps
  • Open Hash Maps Project
  • Create a HashMap with new Function 14:04
  • The remove Method 8:18
  • Hash Maps and Ownership 6:50
  • Access a Value by Key 6:12
  • Overwriting a Value with an Existing Key 1:44
  • The entry Method 5:25
  • The HashSet 8:24
  • HashSet Operations 9:16
  • Project
  • Project Solution 11:25
  • Quiz
  • Section Review 4:55
Chương 17 Error Handling
  • Open Error Handling Project
  • The panic! Macro 6:45
  • The process Module and the exit Function 2:21
  • Standard Error (eprintln! Macro) 7:44
  • Opening a File 13:01
  • Asking the User for Input 12:14
  • Reading the File's Contents 7:49
  • Propagating Errors 15:45
  • Understanding Error Type Redeclaration 10:29
  • The ? Operator (The Try Operator) 8:14
  • The read_to_string Associated Function 4:07
  • Using ? with Option 8:00
  • Project
  • Project Solution 18:54
  • Quiz
  • Section Review 8:14
Chương 18 Traits
  • Open Traits Project
  • Intro to Traits 8:11
  • Defining a Trait 9:20
  • Implementing Trait for Struct I 10:06
  • Implementing Trait for Struct II 12:41
  • Default Implementations 4:12
  • Calling Trait Method from Another Method 4:07
  • Traits for Function Parameter Constraints 8:57
  • Trait Bound Syntax 13:03
  • Multiple Trait Bounds 9:16
  • Where Clauses 5:54
  • Traits as Function Return Values 6:50
  • Trait Bounds to Conditionally Implement Methods 18:54
  • A Preview of Trait Objects 15:57
  • Trait Must be In Scope to Use its Definitions 6:17
  • Moving to Project Structure I 10:53
  • Moving to Project Structure II (Multiple Modules) 9:49
  • Associated Constants in a Trait 10:03
  • Getters in Traits 7:47
  • Setters in Traits 10:17
  • Supertraits I (Trait Inheritance) 12:36
  • Traits with Generics 12:38
  • Implementing the Display Trait on a Struct 16:04
  • Implementing the Display Trait on an Enum 8:26
  • Implementing the Debug Trait 9:03
  • Formatter Methods 7:18
  • Implementing the Drop Trait 7:26
  • Implementing the Clone Trait 10:46
  • Implementing the Copy Trait 9:23
  • Implementing the PartialEq Trait for Structs 10:25
  • Defining Equality for Different Types 10:03
  • Implementing the PartialEq Trait for Enums 10:22
  • Implementing the Eq Trait 10:25
  • Implementing the PartialOrd Trait 15:57
  • Associated Types I 10:41
  • Associated Types II 7:13
  • Project
  • Project Solution 32:49
  • Quiz
  • Section Review 17:53
Chương 19 Lifetimes
  • Open Lifetimes Project
  • Concrete Lifetimes for Values I 7:02
  • Concrete Lifetimes for Values II 5:17
  • Concrete Lifetimes for References 9:06
  • Non-Lexical Lifetimes 7:50
  • Invalid Lifetimes I 7:14
  • Invalid Lifetimes II 6:01
  • Functions Cannot Return References to Owned Values or Parameters 8:04
  • References as Function Parameters 14:58
  • Intro to Generic Lifetimes 14:02
  • Lifetimes and Referents 5:18
  • Lifetime Elision Rules I 10:38
  • Multiple Parameters I 9:18
  • Multiple Parameters II 15:15
  • Lifetime Elision Rules II 14:57
  • Lifetimes in Structs 10:15
  • Multiple Lifetimes 12:16
  • The static Lifetime 5:28
  • Project
  • Project Solution 17:36
  • Quiz
  • Section Review 11:11
Chương 20 Closures
  • Open Closures Project
  • Nested Functions 7:08
  • Intro to Closures 13:38
  • Closure Shortcuts 12:13
  • The Fn Trait Hierarchy 6:40
  • Closures that Capture Immutable References 5:54
  • Closures that Capture Mutable References 10:47
  • Closures with Ownership 11:26
  • The move Keyword 8:06
  • The unwrap_or_else Method 10:03
  • Defining a Method that Accepts a Closure I (FnOnce Trait) 19:57
  • The String.retain Method 9:41
  • Defining a Method that Accepts a Closure II (FnMut Trait) 18:16
  • The Fn Trait 7:13
  • Passing in a Function to Fn Trait Parameter 4:03
  • Project
  • Project Solution 18:53
  • Quiz
  • Section Review 11:33
Chương 21 Iterators
  • Open Iterators Project
  • Manual Iteration 11:24
  • The Iterator and IntoIterator Traits 12:29
  • The IntoIterator Trait In Action 6:39
  • Exhausting the Iterator 5:05
  • The for Loop with Iterator 6:24
  • Why Iterator Can Be Immutable 3:33
  • The iter Method 5:51
  • The iter_mut Method 10:11
  • HashMap Iteration 7:31
  • String Iteration 8:41
  • Solving a Problem with Iteration 10:43
  • The for_each Method 4:18
  • The map Method I 10:04
  • The collect Method 8:21
  • The map Method II 5:31
  • The filter and find Methods I 14:57
  • The filter and find Methods II 13:32
  • The any and all Methods 7:59
  • The cloned Method 11:15
  • The filter_map Method 7:41
  • The flatten Method 3:29
  • The flat_map Method 6:02
  • The enumerate Method 8:42
  • The partition Method 4:58
  • The zip Method 8:05
  • The fold Method 15:18
  • The reduce Method 9:37
  • The sum, product, max, min, and count Methods 17:19
  • The last, nth, nth_back, and position Methods 9:27
  • The take, rev, skip, and step_by Methods 11:06
  • The sort and sort_by_key Methods 12:46
  • The lines Method 6:44
  • Collecting Command Line Arguments I 7:50
  • Collecting Command Line Arguments II 22:33
  • Reading Directory 23:38
  • The FromIterator Trait 20:06
  • Project: Wordle 22:06
  • Project
  • Project Solution 43:32
  • Quiz
  • Section Review 35:58
Chương 22 Testing
  • Intro to Testing 6:09
  • Writing a Test and the assert_eq! Macro 11:09
  • The tests Module and the cfg Attribute 12:49
  • Test Failures 6:31
  • The assert! Macro 4:08
  • Testing Inequality with the assert_ne! Macro 2:22
  • The pretty_assertions Crate 10:10
  • Trait Requirements for Types in Testing 5:32
  • Custom Failure Messages 5:35
  • The should_panic Attribute 9:14
  • Using Result Enum in Tests 6:56
  • Running A Subset of Tests 2:38
  • Ignoring Tests 2:02
  • Showing Printed Output from Passing Tests 3:26
  • Adding MovieTheater Struct 6:52
  • Dependency Injection I 11:26
  • Dependency Injection II 14:14
  • Integration Tests 13:37
  • Documentation Tests 12:32
  • Test Options 5:10
  • Fixtures with the rstest Crate 12:48
  • Test-Driven Development 10:51
  • Project
  • Project Solution 26:15
  • Quiz
  • Section Review 23:28
Chương 23 Randomness with rand Crate
  • Open Random Project
  • Intro to the rand Crate 5:11
  • The ThreadRng Struct 9:10
  • Randomizing Vector Elements with shuffle Method 2:02
  • Project
  • Project Solution 21:52
  • Quiz
  • Section Review 5:51
Chương 24 Datetimes with chrono Crate
  • Open Datetimes Project
  • The NaiveDate Struct 9:40
  • The TimeDelta Struct 10:21
  • Adding and Subtracting Time 8:38
  • The NaiveTime and NaiveDateTime Structs 7:17
  • The DateTime Struct 11:55
  • Converting Timezones 5:24
  • The parse_from_str Function 8:31
  • The format Method 5:14
  • Project
  • Project Solution 27:29
  • Quiz
  • Section Review 7:23
Chương 25 Regular Expressions with regex Crate
  • Open Regular Expressions Project
  • Intro to the regex Crate 2:34
  • The find and find_iter Methods 11:43
  • Searching for Digits 3:59
  • Alphanumeric Characters 2:15
  • Whitespace 1:00
  • Word Boundaries 5:14
  • The Dot Metacharacter 3:22
  • Square Brackets with Characters 4:58
  • Number of Matches I 4:31
  • Number of Matches II 7:08
  • Or Logic 3:02
  • Anchors 5:36
  • Capture Groups 15:15
  • The replace_all Method 8:28
  • Project
  • Project Solution 26:17
  • Quiz
  • Section Review 16:22
Chương 26 Smart Pointers I: Box
  • Open Smart Pointers: Box Project
  • Raw Pointers 8:48
  • Raw Pointers and Unsafe Code 15:00
  • Smart Pointers 7:37
  • The Box Smart Pointer 10:59
  • Intro to Linked Lists 6:13
  • Defining the LinkedList 9:54
  • Creating the LinkedList 13:32
  • Box vs Regular References I 16:30
  • Box vs Regular References II 6:16
  • Vectors are Smart Pointers 10:04
  • Intro to Binary Search Trees 18:32
  • Creating a Binary Search Tree 45:27
  • The Deref and DerefMut Traits I 20:31
  • The Deref and DerefMut Traits II 6:38
  • The Drop Trait 5:56
  • Deref Coercions 9:47
  • Trait Objects I 16:53
  • Trait Objects II: Handling Multiple Errors 29:05
  • Custom Error Types 8:44
  • Project
  • Project Solution 37:24
  • Quiz
  • Section Review 18:12
Chương 27 Smart Pointers II: Cell, RefCell, OnceCell, LazyCell, and Rc [IN DEVELOPMENT]
  • Open Smart Pointers II Project
  • The Cell Type and Interior Mutability Pattern 15:49
  • The RefCell Type 21:55
  • RefCell in Action I 8:43
  • RefCell in Action II 14:52
  • The OnceCell Type 16:08
  • The LazyCell Type 5:37
  • The Rc Smart Pointer 8:10
  • Implementing Rc 8:12
  • The Rc::strong_count Method 4:13
  • Combining Rc and RefCell 8:55
  • Creating Reference Cycle Memory Leak 17:32
  • Fix Reference Cycle Memory Leak with Weak Smart Pointer 23:20
  • Project
  • Quiz
  • Section Review 15:23
Chương 28 Congratulations
  • Congratulations 1:45
  • Complete Slide Decks
  • Complete Captions/Transcriptions
  • Bonus

Requirment

  • A Windows, macOS, or Linux computer

  • A modern text editor (Visual Studio Code is installed and used in the course)

  • Persistence and dedication! No previous experience with programming is needed!

Outcomes

  • Master programming in Rust, a fast, safe, and powerful language used in web development, command-line tools, blockchain, and many other domains

  • Conquer Rust's ownership model, use references to reduce memory, and learn how the compiler prevents common memory problems

  • Progress from core language fundamentals to advanced features like traits, lifetimes, and closures

  • Understand Rust's core building blocks including structs, enums, hashmaps, and more

  • Learn how to structure larger Rust projects using crates, modules, external dependencies, and more

  • Explore a dynamic curriculum with videos, quizzes, written assignments, coding challenges, and more

Instructor

...
Boris Paskhaver

0.0

  • ... 0 Student
  • ... 3 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all