Skip to content

Glossary: Algorithms Beyond the Basics in Rust

Lifetime ('a, 'static)

Also written: 'a, 'static, lifetimes

Rust labels that say how long borrowed data lives. `'static` string literals live for the whole program, and `'a` says returned names are the same borrowed names that came in.

Where the book teaches it

Related terms

Slice