Functions in Rust | Rust Programming | Kovolff

preview_player
Показать описание
Functions are the basic building blocks in most programming languages. You build each function once, but can then use and re-use it an infinite number of times.

Basic form of function in Rust:
fn function_name (parameter_1: type, parameter_2_ type …) return type (if any)
{
function_body

return return_variable (if any)
}

#rust #programming #functions #learn
Рекомендации по теме
welcome to shbcf.ru