Skip to content

Commit

Permalink
rpt 36 sns
Browse files Browse the repository at this point in the history
  • Loading branch information
encody committed Jul 17, 2024
1 parent 768ad26 commit 36d9c13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions content/blog/rust-pro-tips-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ This is a collection of Rust "pro tips" that I've collected, most of which have

## 36. Specify the type of `self` in method signatures

<!--
[Tweet]() [Toot]()
-->
[Tweet](https://x.com/sudo_build/status/1813491727174709278) [Toot](https://infosec.exchange/@hatchet/112800895144267784)

While the three most common types of the `self` parameter have useful shorthands (`self`, `&self`, `&mut self`), the explicit syntax can also include standard library types that deref to `Self`, including `Box<T>`, `Rc<T>`, `Arc<T>`.

Expand Down

0 comments on commit 36d9c13

Please sign in to comment.