pub struct ResolvedProgram { /* private fields */ }Expand description
The canonical whole-program value shared by every compiler and execution phase.
Modules are stored in deterministic dependency-first DFS postorder. Cycles are retained as ordinary edges; each canonical file still appears exactly once.
Implementations§
Source§impl ResolvedProgram
impl ResolvedProgram
pub const fn root(&self) -> &ProjectRoot
pub const fn entrypoint_id(&self) -> SourceId
pub fn entrypoint(&self) -> &ResolvedModule
pub fn modules(&self) -> &[ResolvedModule]
pub fn module(&self, source_id: SourceId) -> Option<&ResolvedModule>
Sourcepub fn runtime_modules(&self) -> Vec<&ResolvedModule>
pub fn runtime_modules(&self) -> Vec<&ResolvedModule>
Returns the eager runtime closure in the program’s canonical order. Type-only, dynamic, and external edges do not cause eager runtime initialization.
Trait Implementations§
Source§impl Clone for ResolvedProgram
impl Clone for ResolvedProgram
Source§fn clone(&self) -> ResolvedProgram
fn clone(&self) -> ResolvedProgram
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 ResolvedProgram
impl RefUnwindSafe for ResolvedProgram
impl Send for ResolvedProgram
impl Sync for ResolvedProgram
impl Unpin for ResolvedProgram
impl UnsafeUnpin for ResolvedProgram
impl UnwindSafe for ResolvedProgram
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