Advanced Lifetimes
We've covered the essentials of Rust's lifetime system, including explicit annotations and elision rules. While these cover the vast majority of cases, some complex scenarios require a deeper understanding of lifetimes to model correctly. This article explores three advanced lifetime features: lifetime subtyping, lifetime bounds on generic types, and lifetimes on trait objects.