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

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. 

主站蜘蛛池模板: 京山县| 东方市| 门源| 繁昌县| 临泉县| 建昌县| 邻水| 临湘市| 出国| 呈贡县| 同江市| 绥滨县| 界首市| 北流市| 普兰县| 榆中县| 二连浩特市| 南溪县| 石河子市| 从江县| 武清区| 灌南县| 建阳市| 仙居县| 二连浩特市| 华安县| 陈巴尔虎旗| 德格县| 咸丰县| 通河县| 华宁县| 于都县| 安国市| 雷波县| 宿迁市| 邢台市| 佛山市| 建湖县| 古蔺县| 通辽市| 德钦县|