Skip to navigation
Skip to navigation
Skip to search form
Skip to login form
Skip to footer
Skip to main content
Accessibility options
Accessibility profiles
Visual impairment
Seizure and epileptic
Color vision deficiency
ADHD
Learning
Content adjustments
Readable font
Highlight titles
Highlight links
Stop animations
Text size
+
+ +
+ + +
Line height
+
+ +
+ + +
Text spacing
+
+ +
+ + +
Color adjustments
Dark contrast
Light contrast
High contrast
High saturation
Low saturation
Monochrome
Orientation adjustments
Reading guide
Reading Mask
Big black cursor
Big white cursor
Email: it@huph.edu.vn
Email: it@huph.edu.vn
Các khóa học
Đổi giao diện
Giao diện cũ
Giao diện mới
Learning AI
Machine Learning cơ bản
en
English
Technology
Programing Language
Udemy – Learn to Code with Rust 2025-1
0 students
Last updated
Jan 2025
Enrol now
Overview
Course content
Instructors
About the course
Show more...
Course content
Sections:
22
•
Activities:
0
•
Resources:
359
Expand all
Section 1
01. Getting Started
1 Intro to Rust
2 The Rust Compiler
3 macOS Intro to Terminal
4 macOS Installing XCode Command Line Tools
5 macOS Installing Rust
6 macOS Installing Visual Studio Code
7 macOS Add VSCode to PATH
8 Windows Intro to PowerShell
9 Windows Find Out Your Windows Operating System
10 Windows Installing Visual Studio
11 Windows Installing Rust
12 Windows Installing Visual Studio Code
13 Updating or Uninstalling Rust with rustup
15 Create Rust Project with Cargo
16 Hello World
17 Compiling and Running Rust File from the Terminal
18 Formatting with rustfmt and cargo fmt
19 The cargo build Command
20 The cargo run Command
21 The cargo check Command
22 Comments
24 Project Solution
27 Section Review
Section 2
02. Variables and Mutability
2 Intro to Variables
3 Interpolation with Curly Braces
4 Positional Arguments to println
5 Underscore with Variables
6 Immutable and Mutable Variables
7 Rust Error Codes Index
8 Variable Shadowing
9 Scopes
10 Constants
11 Type Aliases
12 Compiler Directives
14 Project Solution
16 Section Review
Section 3
03. Data Types
2 Intro to Data Types
3 Integers
4 Using _ as Visual Separator for Numbers
5 The usize and isize Types
6 Strings and Raw Strings
7 Intro to Methods
8 Floating Point Types
9 Formatting Floats with Format Specifier
10 Casting Types with the as Keyword
11 Math Operations
12 Augmented Assignment Operator
13 Intro to Booleans
14 Boolean Inversion with
15 Equality and Inequality Operators
16 And Logic with
17 Or Logic with
18 The Character Type
19 The Array Type
20 Reading and Writing Array Elements
21 The Display Trait
22 The Debug Trait
23 The dbg Macro
24 The Tuple Type
25 Ranges and Range Iteration
26 Intro to Generics
28 Project Solution
30 Section Review
Section 4
04. Functions
2 Intro to Functions
3 Parameters and Arguments
4 Explicit Return Values
5 Implicit Return Values
6 The Unit as a Return Type
7 Blocks in Functions
9 Project Solution
11 Section Review
Section 5
05. Control Flow
2 The if Statement
3 The else if Statement
4 The else Statement
5 Assigning Result of if Statement to Variable
6 The match Statement
8 The match Statement with Multiple Values and Conditionals
9 The loop and break Keywords
10 The continue Keyword
7 Underscore in a Match Arm
11 While Loop
12 Recursion
14 Project Solution
16 Section Review
Section 6
06. Ownership
2 Intro to Ownership
3 The Stack and Heap
4 Scope and Ownership
5 The Copy Trait
6 The String Type
7 The push_str Method on a String Type
8 Moves and Ownership
9 The drop Function
10 The clone Method
11 References and Borrowing
12 The Dereference Operator
13 String String str and str
14 The Copy Trait with References
15 Ownership and Function Parameters
16 Mutable Parameters
17 Return Values I
18 Return Values II
20 Project Solution
22 Section Review
Section 7
07. References and Borrowing
2 Immutable and Mutable Reference Parameters
3 Multiple Immutable References
4 Mutable Reference Restrictions
5 Ownership with Immutable and Mutable References
6 Dangling References
7 Ownership with Arrays and Tuples
9 Project Solution
11 Section Review
Section 8
08. Slices
2 Intro to Slices
3 Create a String Slice from a String
4 String Slices and String Literals
5 String Slice Lengths
6 Syntactic Shortcuts
7 String Slices as Function Parameters
8 Array Slices
9 Deref Coercion with Array Slices
10 Mutable Array Slices
12 Project Solution
14 Section Review
Section 9
09. Structs
2 Define a Struct
3 Create a Struct Instance
4 Access Struct Fields
5 Overwrite Struct Fields
6 Create Structs in a Function
7 Struct Field Initialization Shorthand Syntax
8 Struct Update Syntax
9 Passing Structs into a Function
10 Deriving Debug Trait for Struct
11 Defining Struct Methods
12 self Parameter as Mutable Struct Instance
13 self Parameter as Immutable and Mutable References to Struct Instance
14 Methods with Multiple Parameters
15 Calling Methods from Other Methods
16 Associated Functions
17 Multiple impl Blocks
18 Builder Pattern
19 Tuple Structs
20 Unit Like Structs
22 Project Solution
24 Section Review
Section 10
10. Enums
2 Intro to Enums
3 Enum with Associated Values I
4 Enum with Associated Values II
5 A Brief Discussion on Enum Memory
6 Struct Variants
7 Nesting Enums in Enums
8 The match Keyword I
9 The match Keyword II
10 The match Keyword III
11 Defining Methods on Enums
12 The match Keyword IV Catching Multiple Values
13 The match Keyword V match with Exact Value
14 The if let Construct
15 The let else Construct
17 Project Solution
19 Section Review
Section 11
11. Generics
2 Intro to Generics
3 The Turbofish Operator
4 Multiple Generics
5 Generics in Structs
6 Generics and impl Blocks I
7 Generics and impl Blocks II
8 Generics in Enums
10 Project Solution
12 Section Review
Section 12
12. Option and Result Enums
2 The Option Enum
3 Real Example of Option Enum The get Method on an Array
4 The unwrap and expect Methods
5 The match Keyword with Option Enum
6 Returning an Option Enum from a Function
7 Top Level Option Variants
8 The unwrap_or Method
9 Building Option from Scratch
10 The Result Enum
11 Real Example of Result Enum The parse Method on a string
12 Returning a Result Enum from a Function
13 Result Methods
14 Nuances of unwrap Method on Result
16 Project Solution
18 Section Review
Section 13
13. Vectors
2 Create a Vector
3 Adding and Removing Elements
4 Reading Vector Elements
5 The get Method
6 Ownership with Vectors
7 Writing Vector Elements
8 Vector Capacity Behind the Scenes
10 Project Solution
12 Section Review
Section 14
14. Project Structure
2 Packages and Crates
3 Intro to Modules
4 The pub Keyword
5 The Benefit of Namespaces
6 Module as File
7 Module as Folder
8 Module Ambiguity
9 Public Enums Public Structs and Public Fields
10 Submodules
11 The crate Prefix
12 The use Keyword I
13 The use Keyword II Name Conflicts
14 The self Keyword
15 The super Keyword
16 Create Aliases with the as Keyword
17 Using pub use to Export Names from Submodules
18 External Crates
19 The Standard Library
20 The Glob Operator
21 Create Library Crate
22 Multiple Binary Crates
23 Documentation Comments
24 Bonus Walking through Sample Module Structure
26 Project Solution
28 Section Review
Section 15
15. Strings
2 Review of Strings
3 Concatenation
4 The format Macro
5 Common String Methods trim casing replace split
6 Collecting User Input with read_line Method
8 Project Solution
10 Section Review
Section 16
16. HashMaps
2 Create a HashMap with new Function
3 The remove Method
4 Hash Maps and Ownership
5 Access a Value by Key
6 Overwriting a Value with an Existing Key
7 The entry Method
8 The HashSet
9 HashSet Operations
11 Project Solution
13 Section Review
Section 17
17. Error Handling
2 The panic Macro
3 The process Module and the exit Function
4 Standard Error eprintln Macro
5 Opening a File
6 Asking the User for Input
7 Reading the Files Contents
8 Propagating Errors
9 Understanding Error Type Redeclaration
10 The Operator The Try Operator
11 The read_to_string Associated Function
12 Using with Option
14 Project Solution
16 Section Review
Section 18
18. Traits
2 Intro to Traits
3 Defining a Trait
4 Implementing Trait for Struct I
5 Implementing Trait for Struct II
6 Default Implementations
7 Calling Trait Method from Another Method
8 Traits for Function Parameter Constraints
9 Trait Bound Syntax
10 Multiple Trait Bounds
11 where Clauses
12 Traits as Function Return Values
13 Trait Bounds to Conditionally Implement Methods
14 A Preview of Trait Objects
15 Trait Must be In Scope to Use its Definitions
16 Moving to Project Structure I
17 Moving to Project Structure II Multiple Modules
18 Associated Constants in a Trait
19 Getters in Traits
20 Setters in Traits
21 Supertraits I Trait Inheritance
22 Traits with Generics
23 Implementing the Display Trait on a Struct
24 Implementing the Display Trait on an Enum
25 Implementing the Debug Trait
26 Formatter Methods
27 Implementing the Drop Trait
28 Implementing the Clone Trait
29 Implementing the Copy Trait
30 Implementing the PartialEq Trait for Structs
31 Defining Equality for Different Types
32 Implementing the PartialEq Trait for Enums
33 Implementing the Eq Trait
34 Implementing the PartialOrd Trait
35 Associated Types I
36 Associated Types II
38 Project Solution
40 Section Review
Section 19
19. Lifetimes
2 Concrete Lifetimes for Values I
3 Concrete Lifetimes for Values II
4 Concrete Lifetimes for References
5 Non Lexical Lifetimes
6 Invalid Lifetimes I
7 Invalid Lifetimes II
8 Functions Cannot Return References to Owned Values or Parameters
9 References as Function Parameters
10 Intro to Generic Lifetimes
11 Lifetimes and Referents
12 Lifetime Elision Rules I
13 Multiple Parameters I
14 Multiple Parameters II
15 Lifetime Elision Rules II
16 Lifetimes in Structs
17 Multiple Lifetimes
18 The static Lifetime
20 Project Solution
22 Section Review
Section 20
20. Closures
2 Nested Functions
3 Intro to Closures
4 Closure Shortcuts
5 The Fn Trait Hierarchy
6 Closures that Capture Immutable References
7 Closures that Capture Mutable References
8 Closures with Ownership
9 The move Keyword
10 The unwrap_or_else Method
11 Defining a Method that Accepts a Closure I FnOnce Trait
12 The Stringretain Method
13 Defining a Method that Accepts a Closure II FnMut Trait
14 The Fn Trait
15 Passing in a Function to Fn Trait Parameter
17 Project Solution
19 Section Review
Section 21
21. Iterators
2 Manual Iteration
3 The Iterator and IntoIterator Traits
4 The IntoIterator Trait In Action
5 Exhausting the Iterator
6 The for Loop with Iterator
7 Why Iterator Can Be Immutable
8 The iter Method
9 The iter_mut Method
10 HashMap Iteration
11 String Iteration
12 Solving a Problem with Iteration
13 The for_each Method
14 The map Method I
15 The collect Method
16 The map Method II
17 The filter and find Methods I
18 The filter and find Methods II
19 The any and all Methods
20 The cloned Method
21 The filter_map Method
22 The flatten Method
23 The flat_map Method
24 The enumerate Method
25 The partition Method
26 The zip Method
27 The fold Method
28 The reduce Method
29 The sum product max min and count Methods
30 The last nth nth_back and position Methods
31 The take rev skip and step_by Methods
32 The sort and sort_by_key Methods
33 The lines Method
34 Collecting Command Line Arguments I
35 Collecting Command Line Arguments II
36 Reading Directory
37 The FromIterator Trait
38 Project Wordle
40 Project Solution
42 Section Review
Section 22
22. Congratulations
1 Congratulations
Instructors
Enrolment options
Udemy – Learn to Code with Rust 2025-1
Course modified date:
27 Jan 2025
Enrolled students:
There are no students enrolled in this course.
Guests cannot access this course. Please log in.
Continue
Enrol now
This course includes
Resources
Share this course
Scroll to top
×
Close
×
Close