Smart Pointers in Rust - The Deref Trait

Опубликовано: 22 Октябрь 2024
на канале: Let's Get Rusty
35,718
1.5k

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​​ #rust​lang​ #tutorial