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

Splitting your code with crates and modules

Rust knows two types of code units: crates and modules. A crate is an external library, complete with its own Cargo.toml configuration file, dependencies, tests, and code. Modules, on the other hand, split the crate into logical parts that are only visible to the user if they import specific functions. Since the 2018 edition of Rust, the difference in using these structural encapsulations has been minimized. 

主站蜘蛛池模板: 乌恰县| 阳谷县| 凤山县| 永新县| 合作市| 五河县| 枣阳市| 镇雄县| 台东县| 潞西市| 弥渡县| 林周县| 青田县| 句容市| 泽普县| 罗田县| 扶风县| 仪陇县| 绥滨县| 金门县| 黑水县| 张家界市| 永川市| 承德县| 龙海市| 洪湖市| 黑水县| 贡嘎县| 陇西县| 泾源县| 屏山县| 孝昌县| 凤台县| 襄樊市| 玉山县| 上饶市| 济南市| 二手房| 若羌县| 定安县| 正宁县|