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

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. 

主站蜘蛛池模板: 惠水县| 鱼台县| 柘城县| 万年县| 宣化县| 米易县| 高平市| 新田县| 玛沁县| 阿荣旗| 青岛市| 桐梓县| 邢台市| 内丘县| 邢台县| 玉龙| 友谊县| 彭泽县| 周至县| 墨江| 绥德县| 元阳县| 甘肃省| 茂名市| 靖安县| 监利县| 泗水县| 曲沃县| 河源市| 镇江市| 黄浦区| 沁源县| 丹凤县| 辰溪县| 香港 | 广水市| 沛县| 星子县| 息烽县| 泰顺县| 马山县|