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

Creating and using data types

Rust features all of the basic types: signed and unsigned integers up to 64 bits in width; floating-point types up to 64 bits; character types; and Booleans. Of course, any program will need more complex data structures to remain readable.

If you are unfamiliar with unit tests in Rust (or in general), we suggest going through the Writing tests and benchmarks recipe here in this chapter  first.

In this recipe, we'll look at good basic practices to create and use data types. 

主站蜘蛛池模板: 揭西县| 平罗县| 盐池县| 任丘市| 伊宁县| 阳春市| 庐江县| 土默特左旗| 兴国县| 曲周县| 百色市| 大石桥市| 鄯善县| 花莲县| 雷州市| 千阳县| 桃源县| 都安| 阳东县| 买车| 上蔡县| 吉首市| 腾冲县| 和静县| 鄂尔多斯市| 永州市| 娄烦县| 延庆县| 萍乡市| 南川市| 红河县| 读书| 西乌珠穆沁旗| 兴义市| 临猗县| 福鼎市| 兴文县| 三江| 新巴尔虎左旗| 周口市| 伊春市|