Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning. Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "A few other commands with the rustup.sh script are as follows."

A block of code is set as follows:

 fn main() {
println!("Welcome to Rust Cookbook");
}

Any command-line input or output is written as follows:

 curl https://sh.rustup.rs -sSf | sh

New terms and important words are shown in bold.

In macOS, you can open the Terminal by pressing the F4 key, which opens the launchpad and searches for the Terminal. Then, you can select the Terminal option in the display. This is just one possible way of doing it; there are other ways too.
In Linux distributions, we can jointly press Ctrl + Alt + T to open the Terminal or search for it in the application search window.
It's considered good style to put the opening curly brace on the same line as the function declaration, with one space in between.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.214.27