Permalink

0

Rust Functions

Rust program execution begins in the traditional main function, defined like so:

Apparently the default behavior for main is to accept no parameters and return no values. [I presume there is some means of accepting command-line arguments that we … Continue reading

Permalink

0

Rust Variable Bindings

Rust variable bindings are straightforward, but a bit different than in some other popular languages. An initial declaration / binding begins with the let keyword, and can assume an appropriate type based on the initial value:

This sets up … Continue reading