Uploaded December 2024 | Updated November 2026, 3 hours ago
The Rust series is available here:
youtube.com/watch?v=R33h77nrMqc&list=PLPoSdR46FgI412aItyJhj2bF66cudB6Qs&index=1
In this lesson, we will learn about the Deref Trait and how to implement it if we define our own smart pointers.
The Rust series is available here:
youtube.com/watch?v=R33h77nrMqc&list=PLPoSdR46FgI412aItyJhj2bF66cudB6Qs&index=1
My Products
Rust book: mybook.to/YJI6DI
Rust Workbook: francescociulla.gumroad.com/l/rustworkbook
Rust Cheatsheet: francescociulla.gumroad.com/l/rustcheatsheet
Useful Links
ALL THE LINKS HERE: francescociulla.com
0:00 Introduction to the Deref Trait
1:00 Example: Following the Pointer to the Value
2:17 Using Box Like a Reference
2:55 Defining our own Smart Pointer
4:51 Implementing the Deref Trait
6:05 Implicit Deref Coercion with Functions and Methods
7:12 Deref, DerefMut and Mutability
8:04 Conclusion
ALL THE LINKS HERE: francescociulla.com
The Rust series is available here:
youtube.com/watch?v=R33h77nrMqc&list=PLPoSdR46FgI412aItyJhj2bF66cudB6Qs&index=1
In this lesson, we will learn about the Deref Trait and how to implement it if we define our own smart pointers.
The Rust series is available here:
youtube.com/watch?v=R33h77nrMqc&list=PLPoSdR46FgI412aItyJhj2bF66cudB6Qs&index=1
My Products
Rust book: mybook.to/YJI6DI
Rust Workbook: francescociulla.gumroad.com/l/rustworkbook
Rust Cheatsheet: francescociulla.gumroad.com/l/rustcheatsheet
Useful Links
ALL THE LINKS HERE: francescociulla.com
0:00 Introduction to the Deref Trait
1:00 Example: Following the Pointer to the Value
2:17 Using Box Like a Reference
2:55 Defining our own Smart Pointer
4:51 Implementing the Deref Trait
6:05 Implicit Deref Coercion with Functions and Methods
7:12 Deref, DerefMut and Mutability
8:04 Conclusion
ALL THE LINKS HERE: francescociulla.com










