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

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 ).
主站蜘蛛池模板: 长寿区| 维西| 崇左市| 巩留县| 文山县| 临澧县| 南丰县| 龙州县| 称多县| 楚雄市| 卢湾区| 洛川县| 平果县| 乌鲁木齐市| 潼关县| 平果县| 潼关县| 山阴县| 永川市| 镶黄旗| 普格县| 肃宁县| 普定县| 庆元县| 茂名市| 西贡区| 化隆| 宜阳县| 咸阳市| 宁化县| 洛南县| 灵寿县| 张掖市| 广灵县| 寿阳县| 岐山县| 崇仁县| 灵寿县| 始兴县| 克什克腾旗| 陆河县|