Skip to content

Glossary: Rust Basics

main function

Also written: main, fn main

The function called `main`, where every Rust program starts running.

Where the book teaches it

Related terms

Functionfn