Smart Pointers in Rust – The Deref Trait
49.3K views on YouTube
Join our Rust Live Accelerator waitlist (free Rust Job-Ready Roadmap inside):
https://letsgetrusty.com/join
Let’s Get Rusty is the #1 Rust education & career development platform for engineers who want real-world skills and results. We combine a structured curriculum, industry-grade projects, expert review and feedback, and our Rust recruiter network — to help you master Rust and get hired.
· The ultimate Rust lang tutorial. Follow along as we go through the Rust lang book chapter by chapter.
📝 Get notified when the Rust Cheatsheet comes out: https://letsgetrusty.com/
The Rust book: https://doc.rust-lang.org/stable/book/
Chapters:
0:00 Intro
0:34 Dereference Operator
2:01 Using Box Like a Reference
2:59 Defining Our Own Smart Pointer
4:21 Implementing the Deref Trait
6:40 Implicit Deref Coercions
8:46 Deref Coercion and Mutability
9:38 Outro
#letsgetrusty #rustlang #tutorial