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

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "In the bin folder, create a file called dynamic_json.rs."

A block of code is set as follows:

let s = "Hello".to_string();
println!("s: {}", s);
let s = String::from("Hello");
println!("s: {}", s);

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

let alphabet: Vec<_> = (b'A' .. b'z' + 1) // Start as u8
.map(|c| c as char) // Convert all to chars
.filter(|c| c.is_alphabetic()) // Filter only alphabetic chars
.collect(); // Collect as Vec<char>

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

name abraham
age 49
fav_colour red
hello world
(press 'Ctrl Z' on Windows or 'Ctrl D' on Unix)

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this.

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 灵丘县| 扬中市| 安化县| 鞍山市| 黄石市| 丹棱县| 岑溪市| 京山县| 九龙坡区| 贵德县| 阳西县| 孟州市| 河曲县| 紫阳县| 南开区| 会泽县| 鄂托克前旗| 扎赉特旗| 公主岭市| 瓦房店市| 沙坪坝区| 阿克苏市| 连城县| 外汇| 山东| 盐边县| 湘西| 玉田县| 晋州市| 大悟县| 乌兰浩特市| 静宁县| 田阳县| 阳高县| 赣州市| 潞西市| 红桥区| 木兰县| 内江市| 长顺县| 扬中市|