Rust/Expression
- via Functions - The Rust Programming Language
Expressions evaluate to a value ... Consider a math operation, such as
5 + 6, which is an expression that evaluates to the value11. Expressions can be part of statements: ... the6in the Rust/Statementlet y = 6;is an expression that evaluates to the value6. Calling a Rust/Function is an expression. Calling a Rust/Macro is an expression. A new scope block created with curly brackets is an expression, for example: