Functions - The Rust Programming Language
Functions are prevalent in Rust code. You’ve already seen one of the most important functions in the language: the main function, which is the entry point of many programs. You’ve also seen the fn keyword, which allows you to declare new functions.
Functions - The Rust Programming Language Keyboard shortcuts Press ← or → to navigate between chapters Press S or / to search in the book Press ? to show this help Press Esc to hide this help Auto Light Rust Coal Navy Ayu The Rust Programming Language Functions Functions are prevalent in Rust code. You’ve already seen one of the most important functions in the language: the main function, which is the entry point of many programs. You’ve also seen the fn keyword, which allows you to declare new functions. Rust code uses snake case as the conventional style for function and variable names, in w
related reading
- A half-hour to learn Rustfasterthanli.me
- Rust Language Cheat Sheetcheats.rs
- Expressions - Rust By Exampledoc.rust-lang.org
- Summary - Rust for C-Programmersrust-for-c-programmers.com
- Programming a Guessing Game - The Rust Programming Languagedoc.rust-lang.org
- The program structure - Rust for C-Programmersrust-for-c-programmers.com
- Methods - The Rust Programming Languagedoc.rust-lang.org
- Summary - Rust for C-Programmersrust-for-c-programmers.com
- References and Borrowing - The Rust Programming Languagedoc.rust-lang.org
- Closures - The Rust Programming Languagedoc.rust-lang.org
- Hello, World! - The Rust Programming Languagedoc.rust-lang.org
- What is Ownership? - The Rust Programming Languagedoc.rust-lang.org