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

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. 

主站蜘蛛池模板: 靖西县| 库伦旗| 广丰县| 富阳市| 无棣县| 德清县| 徐水县| 德兴市| 永吉县| 印江| 祁连县| 温宿县| 美姑县| 长岛县| 金山区| 沁水县| 福海县| 綦江县| 宝丰县| 老河口市| 巩义市| 寿宁县| 改则县| 平乐县| 晋江市| 共和县| 广灵县| 景德镇市| 古丈县| 裕民县| 彭阳县| 德阳市| 陇南市| 五原县| 沧州市| 醴陵市| 塘沽区| 溧阳市| 临泉县| 仪征市| 梁山县|