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
).
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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ItemSummary
impl Debug for ItemSummary
sourceimpl<'de> Deserialize<'de> for ItemSummary
impl<'de> Deserialize<'de> for ItemSummary
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ItemSummary> for ItemSummary
impl PartialEq<ItemSummary> for ItemSummary
sourcefn eq(&self, other: &ItemSummary) -> bool
fn eq(&self, other: &ItemSummary) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ItemSummary) -> bool
fn ne(&self, other: &ItemSummary) -> bool
This method tests for !=
.
sourceimpl Serialize for ItemSummary
impl Serialize for ItemSummary
impl StructuralPartialEq for ItemSummary
Auto Trait Implementations
impl RefUnwindSafe for ItemSummary
impl Send for ItemSummary
impl Sync for ItemSummary
impl Unpin for ItemSummary
impl UnwindSafe for ItemSummary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more