Struct rustdoc_types::ItemSummary
source · Expand description
For external (not defined in the local crate) items, you don’t get the same level of information. This struct should contain enough to generate a link/reference to the item in question, or can be used by a tool that takes the json output of multiple crates to find the actual item definition with all the relevant info.
Fields
crate_id: u32
Can be used to look up the name and html_root_url of the crate this item came from in the
external_crates
map.
path: Vec<String>
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. Currently, 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.
kind: ItemKind
Whether this item is a struct, trait, macro, etc.
Trait Implementations
sourceimpl Clone for ItemSummary
impl Clone for ItemSummary
sourcefn clone(&self) -> ItemSummary
fn clone(&self) -> ItemSummary
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more