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

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. 

主站蜘蛛池模板: 睢宁县| 玉树县| 偃师市| 五峰| 抚州市| 丹东市| 大理市| 郑州市| 镇沅| 郑州市| 河东区| 梓潼县| 河北区| 连江县| 日土县| 岱山县| 习水县| 大兴区| 太仓市| 塔河县| 南丹县| 镇坪县| 玛纳斯县| 辽宁省| 福建省| 西平县| 陆丰市| 洮南市| 张家港市| 成武县| 天门市| 霍邱县| 海兴县| 竹溪县| 五常市| 铜陵市| 多伦县| 澜沧| 台北县| 红原县| 西林县|