Rust Basics Series #5 will show you how to use functions in Rust.
https://itsfoss.com/rust-functions/
Rust Basics Series #5: Functions in Rust
In this chapter of the Rust Basics series, learn to use functions and return values from them with the help of examples.Pratham Patel (It's FOSS)