Skip to content

Commit

Permalink
Add Tim McNamara's article about Deref to Step 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Aug 18, 2023
1 parent d8a69b6 commit 40185e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 1_concepts/1_5_convert_cast_deref/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ hello(&m);
For better understanding [`Deref`] purpose, design, limitations and use cases read through:
- [Rust Book: 15.2. Treating Smart Pointers Like Regular References with the Deref Trait][3]
- [Official `Deref` docs][`Deref`]
- [Tim McNamara: Explaining Rust’s Deref trait][13]


### Incorrect usage
Expand Down Expand Up @@ -227,3 +228,4 @@ After completing everything above, you should be able to answer (and understand
[10]: https://ricardomartins.cc/2016/08/03/convenient_and_idiomatic_conversions_in_rust
[11]: https://rust-lang.github.io/rust-clippy/master/index.html#as_conversions
[12]: https://rusty-ferris.pages.dev/blog/asref-vs-borrow-trait
[13]: https://timclicks.dev/explaining-rusts-deref-trait

0 comments on commit 40185e1

Please sign in to comment.