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

  • Rust Quick Start Guide
  • Daniel Arbuckle
  • 63字
  • 2021-06-10 19:46:02

Defining a module

Defining a module is easy. In any .rs file which the compiler is going to be looking at, we can use the mod keyword to start a new module. There are two different ways to use that keyword, though, depending on whether we want to define the module as a section of the current file or as a separate file.

主站蜘蛛池模板: 湘潭市| 金堂县| 精河县| 陇西县| 余干县| 剑阁县| 阳谷县| 江阴市| 越西县| 石河子市| 榕江县| 乐陵市| 黄梅县| 吴江市| 额济纳旗| 那坡县| 全南县| 苗栗县| 德州市| 红河县| 凌海市| 铅山县| 西林县| 昌图县| 长海县| 肥西县| 阜阳市| 霍州市| 延吉市| 垦利县| 山阴县| 津南区| 澄城县| 宁阳县| 定襄县| 喀喇沁旗| 博乐市| 安溪县| 敖汉旗| 常德市| 彭州市|