官术网_书友最值得收藏!

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: "The read_line() method returns a value of type IoResult<String>, which is a specialized Result type."

A block of code is set as follows:

match magician {
"Gandalf" => println!("A good magician!"),
"Sauron" => println!("A magician turned bad!"), _ => println!("No magician turned up!")
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

match magician {
"Gandalf" => println!("A good magician!"),
"Sauron" => println!("A magician turned bad!"), _ => println!("No magician turned up!")
}

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

# rustc welcome.rs -o start

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "When working with Rust code, select Tools | Build System and RustEnhanced."

Warnings or important notes appear in a box like this.

Tips and tricks appear like this.

主站蜘蛛池模板: 积石山| 高阳县| 丁青县| 鞍山市| 无棣县| 济源市| 周宁县| 龙南县| 桐城市| 梅河口市| 龙南县| 敦煌市| 金川县| 宝坻区| 兴国县| 札达县| 卫辉市| 静海县| 磐安县| 南溪县| 长汀县| 合水县| 巴马| 南澳县| 武冈市| 张北县| 林西县| 安阳县| 体育| 九江县| 万州区| 莫力| 靖安县| 宁国市| 沙坪坝区| 巴中市| 班戈县| 景东| 库伦旗| 积石山| 延川县|