Rust Expressions | ||
| ||
| A Rust program is (mostly) made up of a series of statements: There are a few kinds of statements in Rust. The most common two are declaring a variable binding, and using a Blocks are expressions too, so they can be used as values in assignments. The last expression in the block will be assigned to the place expression such as a local variable. However, if the last expression of the block ends with a semicolon, the return value will be
| ||
| | ||
| |