pub struct ProjectGraph<'tcx> {
pub cc: &'tcx CompileCtxt<'tcx>,
/* private fields */
}Expand description
ProjectGraph represents a complete compilation project with all units and their inter-dependencies.
Fields§
§cc: &'tcx CompileCtxt<'tcx>Reference to the compilation context containing all symbols
Implementations§
Source§impl<'tcx> ProjectGraph<'tcx>
impl<'tcx> ProjectGraph<'tcx>
pub fn new(cc: &'tcx CompileCtxt<'tcx>) -> ProjectGraph<'tcx>
pub fn add_child(&mut self, graph: UnitGraph)
Sourcepub fn add_children(&mut self, graphs: Vec<UnitGraph>)
pub fn add_children(&mut self, graphs: Vec<UnitGraph>)
Add multiple unit graphs to the project graph.
Sourcepub fn unit_graph(&self, index: usize) -> Option<&UnitGraph>
pub fn unit_graph(&self, index: usize) -> Option<&UnitGraph>
Get a specific unit graph by index, if it exists.
Sourcepub fn top_k(&self) -> Option<usize>
pub fn top_k(&self) -> Option<usize>
Get top-k limit (currently always None - no PageRank filtering).
Sourcepub fn pagerank_enabled(&self) -> bool
pub fn pagerank_enabled(&self) -> bool
Check if PageRank ranking is enabled (currently always false).
Sourcepub fn connect_blocks(&self)
pub fn connect_blocks(&self)
Connect all blocks by discovering and recording their relationships.
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> Freeze for ProjectGraph<'tcx>
impl<'tcx> !RefUnwindSafe for ProjectGraph<'tcx>
impl<'tcx> Send for ProjectGraph<'tcx>
impl<'tcx> Sync for ProjectGraph<'tcx>
impl<'tcx> Unpin for ProjectGraph<'tcx>
impl<'tcx> !UnwindSafe for ProjectGraph<'tcx>
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
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>
Converts
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>
Converts
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