pub struct ModuleGraph { /* private fields */ }Expand description
The deterministic module scope retained for a rooted application.
Implementations§
Source§impl ModuleGraph
impl ModuleGraph
Sourcepub fn root(&self) -> &ModuleNode
pub fn root(&self) -> &ModuleNode
Returns the selected root module.
Sourcepub fn modules(&self) -> &[ModuleNode]
pub fn modules(&self) -> &[ModuleNode]
Returns reachable modules in deterministic declaration-order traversal.
Sourcepub fn imports(&self) -> &[ModuleImportEdge]
pub fn imports(&self) -> &[ModuleImportEdge]
Returns every direct import edge in deterministic traversal order.
Sourcepub fn provider_ownership(&self) -> &[ProviderOwnership]
pub fn provider_ownership(&self) -> &[ProviderOwnership]
Returns selected provider ownership records ordered by provider type name.
Auto Trait Implementations§
impl Forget for ModuleGraph
impl Freeze for ModuleGraph
impl Move for ModuleGraph
impl RefUnwindSafe for ModuleGraph
impl Send for ModuleGraph
impl Sync for ModuleGraph
impl Unpin for ModuleGraph
impl UnsafeUnpin for ModuleGraph
impl UnwindSafe for ModuleGraph
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