Hi, I'm Eric.

I’m an avid world traveler, photographer, software developer, and digital storyteller.

I help implement the Content Authenticity Initiative at Adobe.

Search Results

Common Rust Lifetime Misconceptions

Found on 5 December 2023 via Mastodon 472

via Rust Weekly 🦀 (@rust_discussions@mastodon.social): Common Rust Lifetime Misconceptions (2020)

An excellent and thorough walkthrough of common misconceptions about Rust lifetimes. Covers key misunderstandings such as confusing lifetimes with scopes, thinking lifetimes can grow or shrink at runtime, and misunderstanding the relationship between T, &T, and &mut T with respect to lifetime bounds. A must-read for anyone looking to deepen their understanding of Rust’s ownership model.

pretzelhammer / rust-blog: Common Rust Lifetime Misconceptions

If you’ve enjoyed this …

Subscribe to my free and occasional (never more than weekly) e-mail newsletter with my latest travel and other stories:

Or follow me on one or more of the socials: