pub enum Outcome {
Syntax {
offset: usize,
kind: String,
},
Parse(String),
Expr {
ast: String,
run: Run,
},
Module(Result<Run, String>),
}Expand description
How one run of a source ended. Each kind maps to one shape of the JSON
described in the module docs. The stage there mirrors the pipeline
vocabulary: syntax (the Muon layer), parse (Muon tree → Elly AST),
load (a module graph), eval (a raise that unwound to the top level).
Variants§
Syntax
The syntax layer (Muon) rejected the source.
Parse(String)
Neither an expression nor a module.
Expr
An expression ran. ast is its tagged JSON dump.
Module(Result<Run, String>)
A module’s __main ran, or the module would not load, which includes
having no __main. A library is reported as the latter, so it never
appears as Run::Library here.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Outcome
impl !Send for Outcome
impl !Sync for Outcome
impl !UnwindSafe for Outcome
impl Freeze for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
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