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

Using the item's full name directly

An item's full name consists of the module name, a :: symbol, and then the item's short name. If we have several layers of modules that we need to get through before we find the item we want, we list those modules' names in order, with a :: between each name. For example, we might refer to std::path::Path to get the Path item from the path module of the std module.

We can use the full name anywhere and be completely unambiguous as to what item we're talking about.

主站蜘蛛池模板: 宜州市| 建湖县| 炉霍县| 玉林市| 景宁| 巴南区| 阿勒泰市| 安阳市| 灵武市| 襄汾县| 隆安县| 河西区| 阜阳市| 界首市| 儋州市| 长春市| 长沙县| 博罗县| 栾川县| 济南市| 周宁县| 怀仁县| 泾源县| 长沙市| 绥芬河市| 虎林市| 甘德县| 台州市| 刚察县| 乾安县| 涞源县| 毕节市| 虞城县| 扎兰屯市| 大荔县| 开封县| 康定县| 曲沃县| 台湾省| 洪湖市| 阿合奇县|