Skip to content

Glossary: Rust Basics

Lifetime

Also written: lifetimes

How long a reference stays valid. Rust works lifetimes out for you almost everywhere; writing them by hand is covered in the next book.

Where the book teaches it

Related terms

Dangling referenceReference