pub struct RustModuleGraph {
pub imports: Vec<(String, String)>,
pub modules: Vec<(String, String)>,
pub mapped: HashSet<String>,
pub facades: HashSet<String>,
}Expand description
Edges and coverage produced by resolve_workspace.
Fields§
§imports: Vec<(String, String)>(from, to) file pairs: from names an item defined in to through a
use path or a fully qualified path. Sorted, deduplicated, no self edges.
modules: Vec<(String, String)>(parent, child) file pairs for mod child; declarations (incl.
#[path]). Sorted and deduplicated.
mapped: HashSet<String>Every .rs file placed in a crate’s module tree. Only these files have
structurally resolved imports; for any other .rs file dependents are
unknown.
facades: HashSet<String>Crate roots and mod.rs files with child files (see module docs).
Implementations§
Source§impl RustModuleGraph
impl RustModuleGraph
Sourcepub fn index_edges(&self) -> Vec<IndexEdge>
pub fn index_edges(&self) -> Vec<IndexEdge>
The resolved edges as project-graph edges, imports first, each list in
its sorted order. Every graph builder (the graph_index scan and the
ctx_impact property-graph build) records Rust edges through this one
conversion, so both answer the same impact question identically.
Trait Implementations§
Source§impl Debug for RustModuleGraph
impl Debug for RustModuleGraph
Auto Trait Implementations§
impl Forget for RustModuleGraph
impl Freeze for RustModuleGraph
impl Move for RustModuleGraph
impl RefUnwindSafe for RustModuleGraph
impl Send for RustModuleGraph
impl Sync for RustModuleGraph
impl Unpin for RustModuleGraph
impl UnsafeUnpin for RustModuleGraphwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<(String, ())>: UnsafeUnpin,
impl UnwindSafe for RustModuleGraph
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more