Skip to content

Commit

Permalink
feat: rpt 31 - social links
Browse files Browse the repository at this point in the history
  • Loading branch information
encody committed Nov 23, 2023
1 parent b8df3c4 commit 64f44ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/blog/rust-pro-tips-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This is a collection of Rust "pro tips" that I've collected, most of which have

## 31. Use indirection in enums to save memory

<!-- [Tweet]() [Toot]() -->
[Tweet](https://twitter.com/sudo_build/status/1727616005038641462) [Toot](https://infosec.exchange/@hatchet/111459094208915697)

All variants of an enum are the same size. This can become a problem when variants have drastically different memory requirements. Use indirection (`&`-reference, `Box`, etc.) to resolve.

Expand Down

0 comments on commit 64f44ca

Please sign in to comment.