Skip to content

Glossary: Rust Beyond the Basics

lifetime elision

Also written: elision

Three rules the compiler uses to fill in lifetimes so you can leave them out, for example in a function with one reference parameter or a method with `&self`.

Where the book teaches it

Related terms

lifetime parameter