Skip to content

Glossary: Rust Beyond the Basics

'static

Also written: static lifetime

A lifetime meaning a reference is valid for the whole run of the program. Quoted text like "HE-5" is always `&'static str` because it is stored inside the program itself.

Where the book teaches it

Related terms

lifetimelifetime parameter