Skip to content

Glossary: Rust Basics

Scope

Also written: out of scope

The part of the program where a name can be used. A variable made inside a block exists only until the block's closing brace, and then its value is dropped.

Where the book teaches it

Related terms

BlockDrop