pub enum ModuleStatus {
Unlinked,
Linking,
Linked,
Evaluated,
}Expand description
Where a module is in its lifetime.
Linking and Evaluated are not just bookkeeping: they are what makes a cycle
terminate. A cycle is not an error — it is a graph that must be linked depth-first
and then evaluated in post-order, and the two-phase split is the mechanism.
Variants§
Unlinked
Loaded and compiled; imports not yet resolved.
Linking
Being linked, so a re-entrant link must not recurse.
Linked
Imports resolved and exports validated.
Evaluated
Body running or already run, so a re-entrant evaluation must not run it twice.
Trait Implementations§
Source§impl Clone for ModuleStatus
impl Clone for ModuleStatus
impl Copy for ModuleStatus
Source§impl Debug for ModuleStatus
impl Debug for ModuleStatus
impl Eq for ModuleStatus
Source§impl PartialEq for ModuleStatus
impl PartialEq for ModuleStatus
impl StructuralPartialEq for ModuleStatus
Auto Trait Implementations§
impl Forget for ModuleStatus
impl Freeze for ModuleStatus
impl Move for ModuleStatus
impl RefUnwindSafe for ModuleStatus
impl Send for ModuleStatus
impl Sync for ModuleStatus
impl Unpin for ModuleStatus
impl UnsafeUnpin for ModuleStatus
impl UnwindSafe for ModuleStatus
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