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

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 ).
主站蜘蛛池模板: 化州市| 陈巴尔虎旗| 阜阳市| 麟游县| 姚安县| 仲巴县| 临武县| 栾川县| 芦山县| 烟台市| 深水埗区| 凉山| 罗田县| 剑河县| 孟州市| 图片| 蒙阴县| 昆明市| 许昌县| 司法| 洪湖市| 遂昌县| 富宁县| 军事| 仁怀市| 崇义县| 南昌县| 洛川县| 鄂托克前旗| 镇远县| 永清县| 漾濞| 苏尼特右旗| 广宁县| 吉安县| 乐清市| 台江县| 小金县| 道孚县| 定结县| 文化|