1. Introduction
  2. 1. What is a "lifetime"?
  3. Core notions
  4. 2. Case study: the pick() function
  5. 3. Chapter 1
  6. 4. Bar
  7. Reference
  8. 5. Lifetime elision rules
  9. 6. Variance
    1. 6.1. Covariance: when lifetimes can shrink
    2. 6.2. Contravariance: when lifetimes can grow
    3. 6.3. Variance rules: a recap
  10. 7. Lifetime semantics of -> impl Trait
  11. 8. Intersection lifetime
  12. 9. async fn unsugaring / lifetime
  13. Niche stuff
  14. 10. impl<#[may_dangle] …> Drop
  15. 11. Appendix
    1. 11.1. Elided lifetimes / what is '_
    2. 11.2. Trait + 'lifetime
    3. 11.3. Subtyping vs. Coercions
  16. Closing thoughts

Rust lifetimes: from 'static to ecstatic

Rust lifetimes: from 'static to ecstatic.

Foo