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.
Glossary: Rust Beyond the Basics
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.