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

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. 

主站蜘蛛池模板: 革吉县| 通化县| 三江| 稷山县| 靖州| 阳江市| 政和县| 静安区| 卓尼县| 桂林市| 长乐市| 中宁县| 芜湖市| 宣武区| 保山市| 宣城市| 镇坪县| 荣成市| 泽州县| 罗平县| 广西| 什邡市| 汾西县| 睢宁县| 微山县| 离岛区| 萍乡市| 芦山县| 吉木萨尔县| 漳浦县| 枝江市| 桐梓县| 绵竹市| 台山市| 汉寿县| 长泰县| 民县| 柳州市| 桐乡市| 扶余县| 兴安盟|