Skip to content

Glossary: Rust Basics

Function

Also written: functions, call

A named block of code that does one job. You run it by calling its name, and it can take inputs and give back a result.

Where the book teaches it

Related terms

ParameterArgumentreturn