pub struct IndexedWorkspace {
pub root: PathBuf,
pub crates: Vec<IndexedCrate>,
}Expand description
The complete indexed workspace: every crate that was successfully indexed, plus workspace-level context needed by the generate stage.
Fields§
§root: PathBufWorkspace root directory (parent of the top-level Cargo.toml).
crates: Vec<IndexedCrate>Indexed crates in the order they were discovered by cargo metadata. Callers should not assume alphabetic or dependency order.
Implementations§
Source§impl IndexedWorkspace
impl IndexedWorkspace
Sourcepub fn build(workspace_root: &Path, config: &Config) -> Result<Self>
pub fn build(workspace_root: &Path, config: &Config) -> Result<Self>
Enumerate the workspace at workspace_root, run rustdoc for every
crate that is not excluded by config, and package the parsed
results into an IndexedWorkspace.
Crates that expose neither a library nor a binary target are skipped silently (e.g. workspace-only virtual manifests). A single crate failure aborts the whole index pass; there is no partial result path at this stage.
Trait Implementations§
Source§impl Clone for IndexedWorkspace
impl Clone for IndexedWorkspace
Source§fn clone(&self) -> IndexedWorkspace
fn clone(&self) -> IndexedWorkspace
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 IndexedWorkspace
impl RefUnwindSafe for IndexedWorkspace
impl Send for IndexedWorkspace
impl Sync for IndexedWorkspace
impl Unpin for IndexedWorkspace
impl UnsafeUnpin for IndexedWorkspace
impl UnwindSafe for IndexedWorkspace
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