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
- Methods - The Rust Programming Languagedoc.rust-lang.org
- Summary - Rust for C-Programmersrust-for-c-programmers.com
- Closures - The Rust Programming Languagedoc.rust-lang.org
- References and Borrowing - The Rust Programming Languagedoc.rust-lang.org
- A half-hour to learn Rustfasterthanli.me
- Control Flow - The Rust Programming Languagedoc.rust-lang.org
- Control Flow - The Rust Programming Languagerust-book.cs.brown.edu
- Macros - The Rust Programming Languageweb.mit.edu
- Programming a Guessing Game - The Rust Programming Languagedoc.rust-lang.org
- Variables and Mutability - The Rust Programming Languagedoc.rust-lang.org
- Summary - Rust for C-Programmersrust-for-c-programmers.com
- The Slice Type - The Rust Programming Languagedoc.rust-lang.org