diff options
| author | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-10-28 01:43:37 +0100 |
|---|---|---|
| committer | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-10-28 10:25:48 +0100 |
| commit | 064ad83cc3555fc2ca747cffaf0445365acb866c (patch) | |
| tree | b941389e3750ae63b7a811be386e3f9fbb43e049 /src | |
| parent | 0da281b6068a7d889ae89a9bd8991284cc9b7535 (diff) | |
| download | rust-064ad83cc3555fc2ca747cffaf0445365acb866c.tar.gz rust-064ad83cc3555fc2ca747cffaf0445365acb866c.zip | |
rustdoc-json-types: Improve ItemSummary::path docs
Diffstat (limited to 'src')
| -rw-r--r-- | src/rustdoc-json-types/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rustdoc-json-types/lib.rs b/src/rustdoc-json-types/lib.rs index 7379b04ad16..4bc91fc4030 100644 --- a/src/rustdoc-json-types/lib.rs +++ b/src/rustdoc-json-types/lib.rs @@ -51,6 +51,11 @@ pub struct ItemSummary { pub crate_id: u32, /// The list of path components for the fully qualified path of this item (e.g. /// `["std", "io", "lazy", "Lazy"]` for `std::io::lazy::Lazy`). + /// + /// Note that items can appear in multiple paths, and the one chosen is implementation + /// defined. Currenty, this is the full path to where the item was defined. Eg + /// [`String`] is currently `["alloc", "string", "String"]` and [`HashMap`] is + /// `["std", "collections", "hash", "map", "HashMap"]`, but this is subject to change. pub path: Vec<String>, /// Whether this item is a struct, trait, macro, etc. pub kind: ItemKind, |
