Rust for Beginners
Learn Rust from zero: install Rust, Cargo, variables, ownership, structs, enums, traits, closures, testing and a CLI to-do app.
Part 1
Install Rust on Ubuntu Linux with rustup and VS Code
Rust for Beginners, episode 1: Install Rust on Ubuntu Linux with rustup and VS Code. Full code and every step, ready to copy.
Part 2
Rust Cargo Tutorial: cargo new, cargo build and cargo run Explained
Rust for Beginners, episode 2: Rust Cargo Tutorial: cargo new, cargo build and cargo run Explained. Full code and every step, ready to copy.
Part 3
Rust Variables Explained: mut, const, Shadowing and Data Types
Rust for Beginners, episode 3: Rust Variables Explained: mut, const, Shadowing and Data Types. Full code and every step, ready to copy.
Part 4
Rust Functions Explained: Parameters, Return Values and Error E0308
Rust for Beginners, episode 4: Rust Functions Explained: Parameters, Return Values and Error E0308. Full code and every step, ready to copy.
Part 5
Rust if / else Explained: Conditions, else if and if as an Expression
Rust for Beginners, episode 5: Rust if / else Explained: Conditions, else if and if as an Expression. Full code and every step, ready to copy.
Part 6
Rust Loops Explained: loop, while, for and Ranges
Rust for Beginners, episode 6: Rust Loops Explained: loop, while, for and Ranges. Full code and every step, ready to copy.
Part 7
Rust Ownership Explained: Move, Clone and Scope
Rust for Beginners, episode 7: Rust Ownership Explained: Move, Clone and Scope. Full code and every step, ready to copy.
Part 8
Rust Borrowing and References Explained: & and &mut, E0499, E0502
Rust for Beginners, episode 8: Rust Borrowing and References Explained: & and &mut, E0499, E0502. Full code and every step, ready to copy.
Part 9
Rust Slices and String vs &str Explained
Rust for Beginners, episode 9: Rust Slices and String vs &str Explained. Full code and every step, ready to copy.
Part 10
Rust Structs Explained: Update Syntax, Tuple Structs, derive(Debug)
Rust for Beginners, episode 10: Rust Structs Explained: Update Syntax, Tuple Structs, derive(Debug). Full code and every step, ready to copy.
Part 11
Rust Methods and impl Explained: &self, &mut self, Associated Functions
Rust for Beginners, episode 11: Rust Methods and impl Explained: &self, &mut self, Associated Functions. Full code and every step, ready to copy.
Part 12
Rust Enums and match Explained: Variants, Data, Exhaustive Matching
Rust for Beginners, episode 12: Rust Enums and match Explained: Variants, Data, Exhaustive Matching. Full code and every step, ready to copy.
Part 13
Rust Option Explained: Some, None, if let, unwrap_or – No null in Rust
Rust for Beginners, episode 13: Rust Option Explained: Some, None, if let, unwrap_or – No null in Rust. Full code and every step, ready to copy.
Part 14
Rust Error Handling Explained: Result, the ? Operator, panic! and expect
Rust for Beginners, episode 14: Rust Error Handling Explained: Result, the ? Operator, panic! and expect. Full code and every step, ready to copy.
Part 15
Rust Vectors Explained: Vec, push, get, Loops and the Borrow Trap
Rust for Beginners, episode 15: Rust Vectors Explained: Vec, push, get, Loops and the Borrow Trap. Full code and every step, ready to copy.
Part 16
Rust HashMap Explained: insert, get, entry and Counting Words
Rust for Beginners, episode 16: Rust HashMap Explained: insert, get, entry and Counting Words. Full code and every step, ready to copy.
Part 17
Rust Modules and Crates Explained: mod, pub, use and cargo add
Rust for Beginners, episode 17: Rust Modules and Crates Explained: mod, pub, use and cargo add. Full code and every step, ready to copy.
Part 18
Rust Traits Explained: impl for, &impl Trait, Default Methods, derive
Rust for Beginners, episode 18: Rust Traits Explained: impl for, &impl Trait, Default Methods, derive. Full code and every step, ready to copy.
Part 19
Rust Generics and Lifetimes Explained: Generic T, Trait Bounds and 'a
Rust for Beginners, episode 19: Rust Generics and Lifetimes Explained: Generic T, Trait Bounds and 'a. Full code and every step, ready to copy.
Part 20
Rust Closures and Iterators Explained: map, filter, collect and sum
Rust for Beginners, episode 20: Rust Closures and Iterators Explained: map, filter, collect and sum. Full code and every step, ready to copy.
Part 21
Rust Testing Explained: cargo test, assert_eq!, assert! and should_panic
Rust for Beginners, episode 21: Rust Testing Explained: cargo test, assert_eq!, assert! and should_panic. Full code and every step, ready to copy.
Part 22
Build a Rust CLI To-Do App: structs, enums, match, Result and Files
Rust for Beginners, episode 22: Build a Rust CLI To-Do App: structs, enums, match, Result and Files. Full code and every step, ready to copy.