17.4 Prelude and Common Imports
Rust’s prelude is a small set of common types and traits automatically imported into every module: for example, Option
, Result
, and some fundamental traits like Clone
and Copy
. If you need anything outside the prelude, you import it explicitly. This explicitness ensures clarity and helps avoid collisions in larger projects.