File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2727- ` pub(in path) ` のような可視性修飾子[ ^ 1 ] において、パスは ` crate ` , ` self ` , ` super ` のいずれかで始まらなくてはならなくなりました。
2828
2929[ ^ 1 ]
30- ` pub(in crate::outer_mod) ` のように書くと ` crate::outer_mod ` モジュール内だけからアクセスできるようになります。("public in ` crate::outer_mod ` " という意味です。)詳細は [ The Rust Reference (英語)] ( https://doc.rust-lang.org/reference/visibility-and-privacy.html#pubin-path-pubcrate-pubsuper-and-pubself ) の説明もご参照ください。
30+ ` pub(in path) ` 構文は、アイテムを ` path ` に指定したモジュール内だけに公開にするための可視性修飾子です。
31+ 例えば、` pub(in crate::outer_mod) ` のように書くと ` crate::outer_mod ` モジュール内だけからアクセスできるようになります。("public in ` crate::outer_mod ` " という意味です。)
32+ 詳細は [ The Rust Reference (英語)] ( https://doc.rust-lang.org/reference/visibility-and-privacy.html#pubin-path-pubcrate-pubsuper-and-pubself ) の説明もご参照ください。
3133
3234<!--
3335## Motivation
You can’t perform that action at this time.
0 commit comments