pub struct RetainedModuleGraph { /* private fields */ }Expand description
Engine-owned retained graph handle.
Downstream crates can request stable graph facts through engine helpers
without depending on fallow-graph node internals.
Implementations§
Source§impl RetainedModuleGraph
impl RetainedModuleGraph
Sourcepub fn module_count(&self) -> usize
pub fn module_count(&self) -> usize
Number of modules in the retained graph.
Sourcepub fn edge_count(&self) -> usize
pub fn edge_count(&self) -> usize
Number of edges in the retained graph.
Sourcepub fn direct_importer_count(&self, file_id: FileId) -> usize
pub fn direct_importer_count(&self, file_id: FileId) -> usize
Count direct importer modules for one file id.
Sourcepub fn direct_importer_summaries(
&self,
target: FileId,
) -> Vec<DirectImporterSummary>
pub fn direct_importer_summaries( &self, target: FileId, ) -> Vec<DirectImporterSummary>
Summaries for modules that directly import one file.
Trait Implementations§
Source§impl Debug for RetainedModuleGraph
impl Debug for RetainedModuleGraph
Source§impl From<ModuleGraph> for RetainedModuleGraph
impl From<ModuleGraph> for RetainedModuleGraph
Source§fn from(inner: ModuleGraph) -> Self
fn from(inner: ModuleGraph) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RetainedModuleGraph
impl RefUnwindSafe for RetainedModuleGraph
impl Send for RetainedModuleGraph
impl Sync for RetainedModuleGraph
impl Unpin for RetainedModuleGraph
impl UnsafeUnpin for RetainedModuleGraph
impl UnwindSafe for RetainedModuleGraph
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