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

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.

主站蜘蛛池模板: 合山市| 上林县| 卓资县| 吴桥县| 日喀则市| 华蓥市| 南平市| 和顺县| 丘北县| 仙居县| 隆子县| 昌邑市| 科尔| 荥经县| 竹北市| 阜阳市| 海晏县| 洛宁县| 马关县| 铁力市| 黔西县| 滦南县| 定陶县| 雅安市| 名山县| 申扎县| 绍兴市| 东莞市| 前郭尔| 叶城县| 苏尼特右旗| 上蔡县| 六枝特区| 高雄市| 安达市| 维西| 彰化县| 紫金县| 贵州省| 房产| 庄浪县|