Planet of the Crabs
🦀 fearless rust


Understanding Lifetime in Rust – Part II

Posted on by Bibhas Bhattacharya : mobiarch

In Part I we discussed the motivation behind lifetime management in Rust and how it works from a function. In this installment we will explore how lifetime helps us model containment relationship (that is, when an object contains a reference to another object). The Business Requirement We will design a Person type. A person may […]