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

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.

主站蜘蛛池模板: 濮阳市| 宜黄县| 东乡族自治县| 进贤县| 兴文县| 容城县| 信丰县| 陆川县| 昌都县| 杂多县| 湄潭县| 噶尔县| 汽车| 阿克| 河北区| 峨山| 雅安市| 和平县| 齐河县| 卢湾区| 丹东市| 安西县| 南雄市| 昆明市| 武冈市| 鄂尔多斯市| 云龙县| 舟曲县| 漠河县| 巴塘县| 赣榆县| 贺兰县| 吉林省| 江北区| 中西区| 七台河市| 安多县| 扎鲁特旗| 竹山县| 舟曲县| 普洱|