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

Consulting Rust documentation

The quickest way to find more detailed information about a Rust topic is to browse to the documentation screen of the Standard Library, http://doc.rust-lang.org/std/.

On the left, you can find a listing of all crates available, which you can browse for more details. But most useful is the search box at the top: type in a few letters or a word to get a number of useful references.

Exercises:
Try to change the value of a constant. Of course this is not allowed, what error do you get? (For an example see Chapter2/exercises/change_constant.rs) .
Look up the println! macro in the documentation.
Read the fmt specification and write a program that will print value 3.2f32 as +003.20 (see Chapter2/exercises/formatting.rs ).
主站蜘蛛池模板: 宁陕县| 保康县| 嘉黎县| 普洱| 抚顺县| 清远市| 昌乐县| 天气| 如东县| 林州市| 祥云县| 淮南市| 聊城市| 五大连池市| 长岛县| 江达县| 镇赉县| 安顺市| 宝坻区| 栾川县| 田林县| 乐至县| 盐津县| 高台县| 定边县| 西贡区| 阜宁县| 沭阳县| 吕梁市| 安徽省| 宁乡县| 越西县| 阆中市| 始兴县| 松滋市| 依兰县| 房山区| 曲沃县| 万年县| 正镶白旗| 噶尔县|