pub struct IndexedCrate {
pub name: String,
pub version: String,
pub root_module_doc: Option<String>,
pub crate_data: Crate,
}Expand description
A single crate that has been indexed via rustdoc JSON.
Fields§
§name: StringThe crate’s package name (as reported by cargo metadata).
version: StringThe crate’s version string (as reported by cargo metadata).
root_module_doc: Option<String>The crate root’s outer doc comment (//! block), if any. Sourced
from rustdoc_types::Crate::index[root].docs.
crate_data: CrateThe raw parsed rustdoc JSON payload. Retained so the generate and lint stages can walk item / module trees without re-parsing.
Trait Implementations§
Source§impl Clone for IndexedCrate
impl Clone for IndexedCrate
Source§fn clone(&self) -> IndexedCrate
fn clone(&self) -> IndexedCrate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IndexedCrate
impl RefUnwindSafe for IndexedCrate
impl Send for IndexedCrate
impl Sync for IndexedCrate
impl Unpin for IndexedCrate
impl UnsafeUnpin for IndexedCrate
impl UnwindSafe for IndexedCrate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more